Hi,<\/p>\n
We have a Wordpress site running on a VM that has WHM/cPanel installed over AlmaLinux8.7<\/p>\n
Our site sits behind a proxy server that we have no control over. We’ve noticed over the past couple of weeks that the site gets so slow and eventually stops responding. Whenever this happens, we use the top command to see that PHP-FPM is using up all of the CPU%. We tried adjusting child processes and many other processes. We are convinced that the apache reverse proxy is the issue. After checking the Apache error log on our server we see hundreds of the same error each second:<\/p>\n
[proxy_fcgi:error] [pid 1093927] [client IP of the PROXY Server:35668] AH01079: failed to make connection to backend: httpd-UDS<\/p>\n
We only added code to our Wordpress config file to get the proxy up and running. Are there other configurations that we may have missed?<\/p>\n
Thanks<\/p>","upvoteCount":9,"answerCount":3,"datePublished":"2023-12-14T01:08:38.000Z","author":{"@type":"Person","name":"jgren21","url":"https://community.spiceworks.com/u/jgren21"},"suggestedAnswer":[{"@type":"Answer","text":"
Hi,<\/p>\n
We have a Wordpress site running on a VM that has WHM/cPanel installed over AlmaLinux8.7<\/p>\n
Our site sits behind a proxy server that we have no control over. We’ve noticed over the past couple of weeks that the site gets so slow and eventually stops responding. Whenever this happens, we use the top command to see that PHP-FPM is using up all of the CPU%. We tried adjusting child processes and many other processes. We are convinced that the apache reverse proxy is the issue. After checking the Apache error log on our server we see hundreds of the same error each second:<\/p>\n
[proxy_fcgi:error] [pid 1093927] [client IP of the PROXY Server:35668] AH01079: failed to make connection to backend: httpd-UDS<\/p>\n
We only added code to our Wordpress config file to get the proxy up and running. Are there other configurations that we may have missed?<\/p>\n
Thanks<\/p>","upvoteCount":9,"datePublished":"2023-12-14T01:08:38.000Z","url":"https://community.spiceworks.com/t/php-fpm-crashing-running-wordpress-site-through-proxy/963946/1","author":{"@type":"Person","name":"jgren21","url":"https://community.spiceworks.com/u/jgren21"}},{"@type":"Answer","text":"
@jgren21<\/a> If you have the capability to make the changes check this.<\/p>\n \"I would modify the php-fpm config with something like this:<\/p>\n Restart php-fpm afterwards!<\/p>\n As a side note, here’s a very interesting article that can explain a lot and guide you to find the best configuration: PHP-FPM settings tutorial. max_servers, min_servers, etc.<\/a> \"<\/p>\npm.max_children = 25\npm.start_servers = 5\npm.min_spare_servers = 5\npm.max_spare_servers = 10\npm.max_requests = 1000\n<\/code><\/pre>\n