Question

502 Bad Gateway nginx/1.6.2 Error

  • Posted February 21, 2015

I am having this problem on my website 502 Bad Gateway

nginx/1.6.2 and I don’t know how to fix. could any of you lend me a hand please? thank you

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

simplefiles

simple files

Can you provide which OS you are using?

If you are using ubuntu with an ispconfig config: /var/www/web_at_which_the_problem_occurs/logs/errors.log or just a manual setup (without ispconfig or other control panel): /var/logs/php/php5-fpm/

Your PHP is failing, thats why it works when you restart the service, you need to check the root cause, how many concurrent users you have, how much ram your droplet has, whats the PHP-FPM configurations params, etc…

Post more details and maybe we can help you.

Honestly I had someone look into it, it got fixed and now it happens every 10 minutes. I run the cmd sudo service php5-fpm restart, it works for a couple of minutes and then, I have to do it all over again. I am out of ideas because I am new to this kind of procedures

What do the logs show you about it?