Apache Permissions

Hey folks--

I'm trying to configure a plain jane Redhat server, Apache 2 to use virtual hosts.

This is the VHost stuff from httpd.conf:

Code:
<VirtualHost server2.b5media.com:80>
DocumentRoot /home/server2/public_html
ServerName server2.b5media.com
DirectoryIndex index.php index.html index.htm
<Directory "/home/server2/public_html">
Allow from All
</Directory>
</VirtualHost>
According to the error_log, this is working in as much as it is looking for files in the right place! However, I have a permission denied.

Code:
[Tue Jan 03 15:23:16 2006] [error] [client 208.20.220.72] (13)Permission denied: access to /index.html denied
[Tue Jan 03 15:37:12 2006] [error] [client 208.20.220.72] File does not exist: /home/server2/public_html/index.gif
If you look at my file structure, I really don't see anything wrong... maybe one of you can?

Code:
[root@b5media02 home]# pwd
/home
[root@b5media02 home]# ls -l | grep server2
drwxr-xr-x  3 server2 server2 4096 Jan  3 15:18 server2

# inside the /home/server2 directory
[root@b5media02 server2]# ls -la
total 84
drwxr-xr-x  3 server2 server2 4096 Jan  3 15:18 .
drwx--x--x  4 root    root    4096 Jan  3 10:57 ..
-rw-------  1 apache  apache    74 Jan  3 11:17 .bash_history
-rw-r--r--  1 apache  apache   304 Jan  3 11:12 .bash_logout
-rw-r--r--  1 apache  apache   191 Jan  3 11:12 .bash_profile
-rw-r--r--  1 apache  apache   124 Jan  3 11:12 .bashrc
-rw-r--r--  1 apache  apache  5619 Jan  3 11:12 .canna
-rw-r--r--  1 apache  apache   383 Jan  3 11:12 .emacs
drwxr-xr-x  2 server2 server2 4096 Jan  3 15:21 public_html
-rw-r--r--  1 apache  apache   658 Jan  3 11:12 .zshrc

# inside public_html
[root@b5media02 public_html]# ls -la                                                                                                           
total 32
drwxr-xr-x  2 server2 server2 4096 Jan  3 15:21 .
drwxr-xr-x  3 server2 server2 4096 Jan  3 15:18 ..
-rw-r--r--  1 server2 server2   12 Jan  3 15:22 index.html
-rwxrwxrwx  1 server2 server2   20 Jan  3 11:14 index.php
As you see, the users home directory is owned by the user server2. public_html, which is the docroot, is also owned by the user and has 755 perms. Should be correct for Apache to execute it. Both of the files inside of public_html are owned by the user with two different perms. I've tried 644, 666, 755, 777... none work. I get the same error.

Can anyone point me in the right direction with this?

Thanks!
aaron

 

 

 

 

Top