By smithy
Hi - Just a simple question but what I am wanting to do is setup multiple WordPress sites on a single Ubuntu 14.04 VPS and my question is regarding the folder structure for the content of the files in /var/www. In this tutorial by Justin, https://www.digitalocean.com/community/tutorials/how-to-set-up-multiple-wordpress-sites-on-a-single-ubuntu-vps (based on a Ubuntu 12.04) the files are placed in /var/www/firstsite/ , /var/www/secondsite/ etc… However, I have noticed that in Justin’s tutorial for setting up one WordPress site in Ubuntu 14.04 https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04 , the documents are placed in /var/www/html/. so my question is this, should my folder on Ubuntu 14.04 for multiple WordPress site look like this /var/www/html/firstsite/ , /var/www/html/secondsite/ or should it just look like this: /var/www/firstsite/ , /var/www/secondsite/ etc… as per Justin’s tutorial for Ubuntu 12.04?
Any help much appreciated, Michael
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!
For directories on where to put content, it is all based on personal preference. You can use /srv/, /var/www/, etc. Just make sure you use appropriate permissions and such when doing so. Personally, I use /srv/http/shortname/public/ for content and /srv/http/shortname/log/ for the logs.
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.