Some tuning of PHP and apache

This commit is contained in:
Josh Knapp 2023-04-11 13:23:14 -07:00
parent a16a9fa68a
commit 2545d91e04
2 changed files with 17 additions and 10 deletions

View File

@ -1,2 +1,13 @@
DirectoryIndex index.html index.htm index.php
Alias "/ping" "/var/www/html"
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>

View File

@ -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