Re: [CentOS] Best configuration for /var/www/html/

2011-04-12 Thread Daniel J Walsh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/11/2011 05:50 PM, Todd Cary wrote: For a long period of time, my Apache root directory has been /home/httpd. For security reasons, this is not so good as SELinux has informed me. Now all of the files have been copied to /var/www/etc

Re: [CentOS] Best configuration for /var/www/html/

2011-04-12 Thread Johnny Hughes
On 04/11/2011 04:50 PM, Todd Cary wrote: For a long period of time, my Apache root directory has been /home/httpd. For security reasons, this is not so good as SELinux has informed me. Now all of the files have been copied to /var/www/etc with owner and group root. The privileges are

Re: [CentOS] Best configuration for /var/www/html/

2011-04-12 Thread Todd Cary
On 4/12/2011 6:56 AM, Johnny Hughes wrote: On 04/11/2011 04:50 PM, Todd Cary wrote: For a long period of time, my Apache root directory has been /home/httpd. For security reasons, this is not so good as SELinux has informed me. Now all of the files have been copied to /var/www/etc with

[CentOS] Best configuration for /var/www/html/

2011-04-11 Thread Todd Cary
For a long period of time, my Apache root directory has been /home/httpd. For security reasons, this is not so good as SELinux has informed me. Now all of the files have been copied to /var/www/etc with owner and group root. The privileges are 754 (rwxr-xr--), however apache does not have

Re: [CentOS] Best configuration for /var/www/html/

2011-04-11 Thread Todd Cary
On 4/11/2011 2:50 PM, Todd Cary wrote: For a long period of time, my Apache root directory has been /home/httpd. For security reasons, this is not so good as SELinux has informed me. Now all of the files have been copied to /var/www/etc with owner and group root. The privileges are 754

Re: [CentOS] Best configuration for /var/www/html/

2011-04-11 Thread Joseph L. Casale
For a long period of time, my Apache root directory has been /home/httpd. For security reasons, this is not so good as SELinux has informed me. Now all of the files have been copied to /var/www/etc with owner and group root. The privileges are 754 (rwxr-xr--), however apache does not have

Re: [CentOS] Best configuration for /var/www/html/

2011-04-11 Thread Les Bell
Todd Cary t...@aristesoftware.com 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.

Re: [CentOS] Best configuration for /var/www/html/

2011-04-11 Thread Trutwin, Joshua
chcon -R -u system_u -t httpd_sys_content_t chcon is a temporary change - to make it permanent use restorecon after: http://docs.fedoraproject.org/en-US/Fedora/13/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-SELinux_Contexts_Labeling_Files.html Josh