Posts Tagged: PHP-FPM

Switching from using a Socket to TCP/IP in PHP-FPM

A couple of websites on our DigitalOcean VPS  have a great amount of traffic. Due to this traffic, I ran into the error below (edited for readability). [crit] connect() to unix:/var/run/php5-fpm.socket failed 2 No such file or directory This was because the amount of concurrent users was starting to get high. Instead of fiddling around

Fixing 504 Gateway Time Out (Nginx & PHP5-FPM)

Since upgrading the server from Ubuntu 12.04 to 14.04 a couple of months ago, we ran into this problem: ‘lfd on High 5 minute load average alert‘. Because, during the upgrade, some files were replaced with newer versions such as PHP5-FPM’s php.ini file, not all of our server configurations were exactly as they had

Using Logrotate to Rotate PHP5-FPM Logs

I recently noticed my php5-fpm.log file on my Ubuntu 12.04 server getting fairly large, so I needed to use logrotate to compress the log file and create a new one. In /etc/logrotate.d we’ll have our individual application information, which overrides the defaults set in /etc/logrotate.conf . It’s in logrotate.d where we’ll create our php5-fpm log

PHP5-FPM and Nginx White Screen

Ah, the infamous white screen of death. After doing some server and package upgrades, I ran across the problem of a blank screen being generated when trying to access the websites located on the server. None of the configuration files were changed, I had simply upgraded some packages and kept my settings intact. After checking