Location to put my website in linux
I am working on an assignment to host a website.
I am using LAMP architecture for that.
What I am confused at this point is to where to store my website folder(s).
What I thought was to put it in /srv/www/ : /srv/www/MyWebsite.
But then I was advised that I could also place the folder in /home/user/public_html directory, or simply in /home/user/ directory.
Which one is more preferable?
And what is ideal if I am to go for hosting multiple websites?
Bhoot
Junior Poster in Training
53 posts since Oct 2008
Reputation Points: 10
Solved Threads: 1
The web root is determined by the directives set in the server config file. It is not something that you can arbitrarily determine uless you have acess to the ineer workings of the server.
Most linux distros use html or public_html as the doc root folder name.
However, you can actually set it to anything you want. The names above are by convention so everybody knows to look there.
JRM
Practically a Master Poster
621 posts since Nov 2006
Reputation Points: 130
Solved Threads: 75