Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
I think it is safe to include a section that checks/removes apache if its already on your server. Great guide!
This tutorial actually installs Apache in the first steps. I removed apache manually, but it keeps on reinstalling when I run the suggested php installation command. (libapache2-mod-auth-mysql).
Is apache needed? When I open the browser on the IP it shows apache instead of nginx…
@infy: Thanks, I’ve updated the article. You do not need libapache2-mod-auth-mysql.
I’m getting these errors (see below) and can’t see my php info page. However, I get the “It works!” default page on my IP.
Restarting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] still could not bind() nginx.
I did a sudo reboot, I get the same error. This happened to me a few weeks ago when I tried to set up Nginx as well. Thought I’d give it another try.
@Chris: You probably have apache listening on port 80. Try to see what’s already using that port: <pre>sudo netstat -plutn | grep 80</pre>
@Chris: Uninstall apache and start nginx: <pre>sudo service apache2 stop sudo apt-get remove apache2* sudo service nginx start</pre>