By bodoweb2009
Hi all, a couple of days work to configure my server, I mean to install those required to host a site on it. The problem that I am facing is, after I managed to install nginx php5… I deal with this error:
502 Bad Gateway
nginx/1.8.1
I read on many sites to remove a comment, sorry it will ask what it means to remove a comment, as I don’t know.
Thanks!
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!
It is possible that the php5-fpm service that nginx requires to process php scripts is not running, this will result in a 502 error. You can attempt to restart this with the command:
service php5-fpm restart
When a tutorial or guide says to “uncomment” a line it usually means that the configuration line has a character at the beginning of it which causes it to be seen as a comment and not a setting to use. Often this will be the # character.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.