[CentOS] Forbidden: can't access *.html files in /var/www/html

Ben McGinnes ben at adversary.org
Wed Sep 29 11:13:15 EDT 2010


On 30/09/10 12:43 AM, Alexander Farber wrote:
> Hello,
> 
> I'm using the latest CentOS with phpBB 3.0.x + postgreSQL + sendmail
> (relayed through gmail.com) - all those programs working fine,
> with no big modifications of the CentOS defaults (i.e. SELinux is on).

[SNIP

> Does anybody know what is wrong, how to find out?

Yep, it's SELinux picking up that the files have been moved or copied to
that directory.  Run this command:

restorecon -R /var/www/html

The pages should load after that.


Regards,
Ben


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
Url : http://lists.centos.org/pipermail/centos/attachments/20100930/19e4b3b1/attachment.bin 


More information about the CentOS mailing list