Nginx 502 Bad Gateway

  1. Check if php-fpm service is up
  2. Check if being listened to by nginx (for CentOS, look for "listen" in /etc/php-fpm.d/www.conf)
  3. Adjust nginx vhost (fastcgi_pass) when necessary (example below)
1fastcgi_pass 127.0.0.1:9000;