Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from NethServer/php73
conf: add custom FPM pool NethServer/dev#6632
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
; | ||
; webtop php-fpm configuration | ||
; | ||
|
||
[nethserver-webtop] | ||
listen = /var/run/rh-php73-php-fpm/nethserver-webtop-php73.sock | ||
|
||
;Logs | ||
php_admin_value[error_log] = /var/opt/rh/rh-php73/log/php-fpm/error-webtop.log | ||
php_admin_flag[log_errors] = on | ||
|
||
pm = dynamic | ||
pm.max_children = 50 | ||
pm.start_servers = 5 | ||
pm.min_spare_servers = 5 | ||
pm.max_spare_servers = 35 | ||
|
||
user = apache; | ||
group = apache | ||
listen.owner = root | ||
listen.group = apache | ||
listen.mode = 0660 | ||
|
||
; Set data paths to directories owned by process user | ||
php_value[session.save_handler] = files | ||
php_value[session.save_path] = /var/opt/rh/rh-php73/lib/php/session | ||
php_value[soap.wsdl_cache_dir] = /var/opt/rh/rh-php73/lib/php/wsdlcache | ||
|
||
; Set opcache settings | ||
php_value[opcache.file_cache] = /var/opt/rh/rh-php73/lib/php/opcache | ||
php_value[opcache.enable_cli] = 1 | ||
php_value[opcache.interned_strings_buffer] = 8 | ||
php_value[opcache.max_accelerated_files] = 10000 | ||
php_value[opcache.memory_consumption] = 128 | ||
php_value[opcache.save_comments] = 1 | ||
php_value[opcache.revalidate_freq] = 1 | ||
|
||
; PHP settings | ||
php_admin_value[memory_limit] = 512M |