Thursday, June 26, 2014

Lighttpd Permission denied on home directory Alias

I recently ran into problems trying to set up lighttpd on redhat and giving home directory access for alias URL's After chmod and chown on all folders and directories I could see the log throwing a permssion denied when trying to display contents from the home folder. I was confused and spent a lot of time trying figure out what the problem was. It turns out this Article helped me understand a little more about the problem I faced

http://wiki.centos.org/HowTos/SELinux this link showed me how to check if SELinux is working and also understand about permissions to different processes. After I ran the following command

chcon -Rv --type=httpd_sys_content_t /home/lighttpd

everything started working. It had the wrong type and it was not allowing lighttpd to read the contents of the directory. I hope this helps someone out if the run into this problem.

No comments:

Post a Comment