[CentOS] Permissions for LAMP

Joseph Hesse

joehesse at gmail.com
Sat Jan 25 12:33:28 UTC 2014


I am running a Lamp server on a CentOS 6.5 box. It works fine, I am 
concerned that I may have the wrong file/dir permissions.

The directories /var and /var/www are root:root and 755.

For /var/www/html and all directories underneath I have apache:apache 
and 770.

For all files under /var/www/html I have apache:apache and 660.

Are these these permissions OK?

Thank you,
Joe



More information about the CentOS mailing list