ScaleScaleScaleScale

Tips / Nginx

Archive for posts tagged 502 Bad Gateway

php5-fpm.sock failed (13: Permission denied) error

I recently upgraded some PHP packages on an Cloud VPS server and since that I noticed some errors on the hosted websites. The first thing I noticed was a 502 Gateway timeout error. And after reviewing the logs I found this: [crit] 2963#0: *138 connect() to unix:/tmp/php5-fpm.sock failed (13: Permission denied) while connecting to upstream […] Read more

How to Fix 502 Bad Gateway Error Using Nginx

Many times we can browse the web and find a 502 bad gateway error at Nginx.   There are a few reasons why you will find this message in  your webserver log, and here we will teach you how to fix it. How you might see the 502 Bad Gateway error Different websites may customize […] Read more