Question
Lemp on Ubuntu - where should I place my website
Hello,
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).
Thanks!
Add a comment
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.
×