: Apache webserver user setup and security issues I have a server running Centos 5.6/PHP/MySQL etc that will only host one website all the time. New question Is there any security implication
I have a server running Centos 5.6/PHP/MySQL etc that will only host one website all the time.
New question
Is there any security implication on leaving a single website hosted in the default location of /var/www/html/ versus the common location of /home/user/?
Original question
Does it make any sense* to have Apache webserver host the account in the home folder (/home/user) instead of the default location of /var/www/html?
*Sense mean performance benefit, security reasons, etc.
Thank you.
More posts by @Murray155
1 Comments
Sorted by latest first Latest Oldest Best
Probably more secure to leave it over in /var/whatever. If you made it /home/user it could expose hidden files, who knows what else that might matter. If the two directories are on the same disk there shouldn't be any performance difference. [edit] Also, you might as well do it the way everyone else does it, just for consistency.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.