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?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.