[CentOS] easy httpd's problem

Leonard den Ottolander leonard at den.ottolander.nl
Wed Nov 17 06:14:11 EST 2010


On Wed, 2010-11-17 at 18:32 +0800, 49163653 wrote:
> This is just for test,not for the serious situation!
> And I just find the solution to my problem yesterday.
> The reason is that the selinux on my CentOS prevent httpd from
> visiting file.
> Issus will be fine after I change the file's context label via
> chcon.May be this can be useful to you!

You should rather fix your docroot to use /var/www/html. That way you
wont even stumble into these selinux restrictions. You shouldn't relabel
your whole system to "fix" your poor configuration, even on a test
system.

Regards,
Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research




More information about the CentOS mailing list