Some tuning of PHP and apache
This commit is contained in:
parent
a16a9fa68a
commit
2545d91e04
@ -1,2 +1,13 @@
|
||||
DirectoryIndex index.html index.htm index.php
|
||||
Alias "/ping" "/var/www/html"
|
||||
|
||||
<IfModule mpm_event_module>
|
||||
StartServers 10
|
||||
MinSpareThreads 25
|
||||
MaxSpareThreads 75
|
||||
ThreadLimit 64
|
||||
ThreadsPerChild 25
|
||||
MaxRequestWorkers 800
|
||||
ServerLimit 32
|
||||
MaxConnectionsPerChild 1500
|
||||
</IfModule>
|
@ -12,16 +12,12 @@ listen = /run/php-fpm/www.sock
|
||||
listen.owner = apache
|
||||
listen.group = apache
|
||||
|
||||
pm = dynamic
|
||||
pm.max_children = 50
|
||||
pm.start_servers = 5
|
||||
pm.min_spare_servers = 5
|
||||
pm.max_spare_servers = 35
|
||||
pm.process_idle_timeout = 15s;
|
||||
pm.max_requests = 500
|
||||
pm = static
|
||||
pm.max_children = 25
|
||||
pm.max_requests = 1000
|
||||
|
||||
slowlog = /var/log/php-fpm/www-slow.log
|
||||
request_slowlog_timeout = 6s
|
||||
slowlog = /etc/httpd/logs/error_log
|
||||
request_slowlog_timeout = 3s
|
||||
|
||||
php_admin_value[error_log] = /etc/httpd/logs/error_log
|
||||
php_admin_flag[log_errors] = on
|
||||
|
Loading…
Reference in New Issue
Block a user