I’ve WordPress running on nginx, fastCGI. Currently I’m having issues on my droplet, when I try to load my domain I’m getting 502 bad gateway error.
My site was infected with malware. Every PHP on server had a code with base64_decode() in it and I managed to remove it by using the method in . After I removed the code using this method, I got a 502 bad gateway and when I tweaked my config using articles I found on various site, I ended up getting “Unable to connect” message on my browser.
When I run the command
service nginx start I get the following error.
nginx: configuration file /etc/nginx/nginx.conf test failed
sudo service nginx status
* could not access PID file for nginx
Any suggestions on getting around this?
This textbox defaults to using Markdown to format your 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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!