I’ve always used shared hosting, so this is quite a learning curve…thanks in advance for any help!
I’ve read different things about the default home directory so I’d like to know which is recommended. I’ll be using WordPress, and might add more than one site (will start with one and go from there) on the same droplet.
Is there any preference between (both are available): /var/www/ /usr/share/nginx/www/
What is considered best practice for adding a single site? /var/www/public_html/mysite.com /var/www/mysite.com/public_html
What about multiple sites? /var/www/public_html/mysite1.com /var/www/public_html/mysite2.com etc
Or is there more recommended structure?
I setup another directory as /home/, but I’m having a lot of permission issues with wordpress and I think I made a mistake in not using the default locations (which I didn’t understand until after I was finished).
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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!