Question
502 Bad Gateway nginx/1.10.3 (Ubuntu) after migrating Wordpress from another hosting
Hello,
I am trying to run my Wordpress based website after migration from another hosting.
Last time I did it it worked well but after my last successful migration I updated to Ubuntu 16.04.3.
Now I have 502 Bad Gateway nginx/1.10.3 (Ubuntu).
I tried to check log file /var/log/nginx/error.log — this file is empty 😕
I tried some advises from another threads (restarting nginx and php5-fpm) — it doesn’t help.
Please give me any advise how to find out the reason.
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.
×
Could you show your nginx.conf file?
Hello,
I have the same problem since 2 weeks on my droplet with all php installations am trying to run.
I purged all nginx, php* packages then reinstall it again an set again all my vhost conf and it was working since yesterday.. all my wordpress sites. But, am just coming to get the same problem now.
My phpmyadmin new installation (after the previous apt purge) is a manualy installation with phpmyadmin archive: it brings me 502 too exactly like a phpinfo(); file . But any problem with Html site, on the sames vhost or not.
Bellow is the /etc/nginx/sites-available/ conf for one installation with a single index.php file