What is the correct folder to put my website files, var/www or var/www/html?

I have two droplets active, in both of theme I have wordpress installed.

In one of them I follow this tutorial to instal LAMP and WordPress. This tutorial says: " …The location of the document root in the Ubuntu 14.04 LAMP guide is /var/www/html/. We can transfer our WordPress files there by typing:…" So I have my wordpress files under var/www/html

But in the other droplet I follow this other tutorial to install wordpress through one click WordPress install, and this installed wordpress files on var/www.

I have read on google that on ubuntu 14.04 the root directory have been moved from var/www to var/www/html. Is digital ocean wordpress one click install adding files on incorrect directory? I should move my files from var/www to var/www/htmll?

Thanks in advance!

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

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.

The One-Click Wordpress installs Wordpress in /var/www and sets DocumentRoot to /var/www instead of /var/www/html (see /etc/apache2/apache2.conf – the virtual host should be at the very bottom of the file), so you should store your files in /var/www.