502 Bad Gateway after upgrade to PHP 5.5.5 on Nginx server

Quick tip: If you’re getting 502 Bad Gateway errors after upgrading your Debian Wheezy Nginx server to PHP5-FPM 5.5.5 then check out your www.conf file. Look for these lines:

;listen.owner = www-data
;listen.group = www-data

Uncomment them by removing the ‘;’ in front of all these lines so it looks like:

listen.owner = www-data
listen.group = www-data

Then load the new settings into PHP, which on my Nginx servers usually is done with:

service php5-fpm reload

1 Comment

Note: I just found that the same thing applies when upgrading to PHP5-FPM 5.4.29 on Debian Squeeze using the dotdeb.org repositories. Be aware !

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.