[CentOS] easy httpd's problem

Wed Nov 17 11:14:11 UTC 2010
Leonard den Ottolander <leonard at den.ottolander.nl>

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