21
13
When I first started programming for the web and I wanted to create a new project I was always taught to create a directory in /var/www/
. However in a lot of tutorials I read people tend to create a directory in /home/username/
.
I don't like the idea of putting it in /home/username/
.
Is there a correct place or if not what are the advantages/disadvantages of placing it in certain areas on the file system?
That's preference ("best" implies that, maybe you should change this to be most secure, etc.) for development mostly. If you are serving them from there too, then you'd probably want something secluded to keep some sort of distance between your personal files and web-share stuff. But there are a million configurations. I stick with
/var/www
and usually have that on another drive (just preference). – nerdwaller – 2013-08-22T13:40:36.890There is no "best" directory. Its entirely your perference because the phyiscal location of the files does not matter. – Ramhound – 2013-08-22T13:42:26.603