Wednesday, June 8, 2016

apache 2.2 - Centos document_root default user and group




After default CentOs 5.5 install - Document_Root directory (/var/www/html) is owned by root.
In my httpd.conf file I have:



user apache
group apache



mmm. Should I change ownership of /var/www/html to apache:apache?



UPDATE




Never mind. I was trying to figure out why I can't access a directory that i've created inside of the Document_Root. Then I've stoped SELinux and was able to access that directory.


Answer



No, you need not to change the ownership of /var/ww/html from root:root. But it should be in 755 permission.



What error you are getting while accessing the folder inside /var/www/html


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...