I have some problems with one of our servers that is hosting a high traffic website. To be more exact, from time to time with no reason php5-fm dies and the quick fix is to restart the process.
I wonder what can we tweak to optimize the server for such a big task.
A part of the apache2 error log is,
- [Sat Sep 27 13:10:58.013184 2014] [fastcgi:error] [pid 23562:tid 139667001292544] (2)No such file or directory: [client 74.6.254.101:39370] FastCGI: failed to connect to server "/var/lib/apache2/fastcgi/php5-fcgi-domain.tld": connect() failed[Sat Sep 27 13:10:58.013245 2014] [fastcgi:error] [pid 23562:tid 139667001292544] [client 74.6.254.101:39370] FastCGI: incomplete headers (0 bytes) received from server "/var/lib/apache2/fastcgi/php5-fcgi-domain.tld"[Sat Sep 27 13:10:58.048675 2014] [fastcgi:error] [pid 23562:tid 139666883794688] (2)No such file or directory: [client 68.180.225.108:15248] FastCGI: failed to connect to server "/var/lib/apache2/fastcgi/php5-fcgi-domain.tld": connect() failed[Sat Sep 27 13:10:58.048726 2014] [fastcgi:error] [pid 23562:tid 139666883794688] [client 68.180.225.108:15248] FastCGI: incomplete headers (0 bytes) received from server "/var/lib/apache2/fastcgi/php5-fcgi-domain.tld"[Sat Sep 27 13:10:58.079957 2014] [fastcgi:error] [pid 23562:tid 139666808260352] (2)No such file or directory: [client 5.14.222.14:1419] FastCGI: failed to connect to server "/var/lib/apache2/fastcgi/php5-fcgi-domain.tld": connect() failed, referer: https://www.google.ro/[Sat Sep 27 13:10:58.080007 2014] [fastcgi:error] [pid 23562:tid 139666808260352] [client 5.14.222.14:1419] FastCGI: incomplete headers (0 bytes) received from server "/var/lib/apache2/fastcgi/php5-fcgi-domain.tld", referer: https://www.google.ro/
The configuration is a cloud server with 8vcpu, 16GB RAM, SSD Storage.
Software. Ubuntu 14.04LTS, Apache 2.4.7, PHP 5.5.9, I-mscp 1.1.14
The website is a Wordpress installation. Traffic of the site is around 10.000 -18.000 unique visitors, and I saw a peak on the 480 simultaneous visitors. Most of the time there are ~100 simultaneous visitors.
I use also memcache and local CDN (w3 total cache plugin) to make the website snappy.
PHP Settings for this domain,
Apache tuning, that I have done in apache2.conf
Rest of the apache2 settings are default.
I did some tuning also on /etc/apache2/mods-available/mpm_worker.conf
Any suggestions? Thanks!