Error 502 - Bad Gateway on New Websites

Discussion in 'General' started by idfbobby, Jan 13, 2015.

  1. idfbobby

    idfbobby New Member

    Alright, the lowdown is this. I made the mistake of upgrading to nginx 1.7x & PHP 5.5x and now my permissions are screwy.
    Nginx is running as nginx according to nginx.conf
    PHP is running each socket as the appropriate client and user with 0660.
    So the problem that I'm having is that nginx can't talk to PHP because of a permissions issue. This was apparently a PHP security hole that was fixed in PHP5.5. I can set the socket permission to 0777 and the bad gateway error goes away, however I'm assuming this isn't the safe way to handle things.
    Any ideas on how I could resolve the problem in a more secure method? Thank you in advance for your time!

Share This Page