Report this

What is the reason for this report?

2 tutorials, differents paths?

Posted on October 22, 2013

First I followed this tutorial here https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04 and now I’m following this one right here https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3 but there seems to be a kind of a problem here because while on the first link the STEP SIX says to set root to “root /usr/share/nginx/www;” and in the second STEP FIVE sets the root to root /var/www/example.com/public_html;

Do I have to go one way or the other?



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.

<b>“Following the two tutorials is a bit redundant right?”</b> <br> <br>Yes; sorta. The two articles serve two distinct purposes. However, there is some overlap. Thus, to duplicate the overlapping portions of the two tutorials on your droplet… yes, that would be redundant.

Since you’re going to host multiple websites on your droplet you should store them in <code>/var/www/example.com/public_html</code>

You can put the root folder anywhere you want, just be sure that www-data:www-data are the owners, the tut is wrong.

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.