Re: Best configuration for /var/www/html/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Todd Cary <todd@xxxxxxxxxxxxxxxxxx> wrote:

>>
The privileges are
754 (rwxr-xr--), however apache does not have access to them.
Should the owner be apache?  Group?
<<

It's probably the SELinux labels preventing access - I stumbled across this
yesterday while setting up a local mirror to deploy 5.6.

Do an ls -lZ on the stuff in /var/www/html - it should look something like
this:

drwxr-xr-x  root root system_u:object_r:httpd_sys_content_t CentOS

You've probably got the wrong user and type on your files. Use chcon to
change them - from memory

chcon -R -u system_u -t httpd_sys_content_t

I hope that gets it for you.

Best,

--- Les Bell
[http://www.lesbell.com.au]
Tel: +61 2 9451 1144


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux