« Rogers Yahoo TV beta, Wow, people really hate itBrown Shoes and Belt, Future Shop Horror Story »

Centos 4, Apache, SELINUX and 403 errors

12/07/06

  01:03:00 pm by wdawe, Categories: centos

I just spent a frustrating 45 minutes trying to figure out why I was constantly getting 403 errors when I tried to access user directories on my local system with Apache on Centos 4. Turns out I had turned on SELINUX when I had upgraded Centos to version 4 on my machine. To enable access to your user home directories when SELINIX is enabled go to the home directory and issue the command
chcon -R -h -t httpd_sys_content_t public_html

alternatively you can disable SELINUX by setting SELINUX to disabled in /etc/selinux/config


I hope this save you 45 minutes of tearing your hair out. This should be just as applicable to people running Redhat EL4.


By the way, if you want to create your own podcasts under linux (Or OS X) from Internet radio check out  Internet Radio to Podcast with Shell Tools , great article at Linux Journal. One caveat though the command they recommended perl -e "install XML::RSS,XML::Simple" -MCPAN to get the required perl modules didn't work for me, it just complained about things after running for about 5 minutes and trying to work things out. I used yum instead, much less painful.

No feedback yet


Form is loading...

Cool web tools, EEPC tips and Linux info. Browse around, I'm sure you will find something to interest you.

Search

  XML Feeds

RWD CMS