i copied the nginx image and made it build the php instead and added some ai recommended conf and ini files which i have to change later
This commit is contained in:
33
php-fpm.d/www.conf
Normal file
33
php-fpm.d/www.conf
Normal file
@@ -0,0 +1,33 @@
|
||||
[www]
|
||||
|
||||
user = php
|
||||
group = php
|
||||
|
||||
listen = /var/run/php/php-fpm.sock
|
||||
listen.mode = 0660
|
||||
|
||||
pm = dynamic
|
||||
pm.max_children = 20
|
||||
pm.start_servers = 4
|
||||
pm.min_spare_servers = 2
|
||||
pm.max_spare_servers = 6
|
||||
|
||||
pm.max_requests = 500
|
||||
|
||||
request_terminate_timeout = 30s
|
||||
request_slowlog_timeout = 5s
|
||||
slowlog = /var/log/php/slow.log
|
||||
|
||||
catch_workers_output = yes
|
||||
|
||||
php_admin_value[expose_php] = Off
|
||||
php_admin_value[display_errors] = Off
|
||||
php_admin_value[log_errors] = On
|
||||
php_admin_value[memory_limit] = 256M
|
||||
php_admin_value[upload_max_filesize] = 8M
|
||||
php_admin_value[post_max_size] = 8M
|
||||
php_admin_value[max_execution_time] = 30
|
||||
|
||||
clear_env = yes
|
||||
|
||||
security.limit_extensions = .php
|
||||
Reference in New Issue
Block a user