Web Server Issues Centos

Judd Pickell pickell at gmail.com
Wed Apr 1 19:14:58 MST 2009


This may sound like  a silly question, but are you sure that the folders you
are using have the right user/group permissions and ownership so that Apache
can see it? I have had issues with permissions on CentOS 5 when setting up
apache many times.

Sincerely,
Judd

On Wed, Apr 1, 2009 at 7:01 PM, Gilbert T. Gutierrez, Jr. <
mailing-lists at phoenixinternet.net> wrote:

> I am having a problem that for the life of me I cannot solve.  I am setting
> up a basic web server on Centos5 duplicating a setup I have on Centos4.  My
> old setup is on a slow server that has some hardware failing randomly.
>
> I have the standard apache setup that I have appended with the following
> information I have at the bottom of the email.  When I try to access a
> basic
> index.html file that I created in the folder /home/gilbert/pub_html/html I
> get:
> "Forbidden
>
> You don't have permission to access / on this server.
> Apache/2.2.3 (CentOS) Server at www.test.net Port 80"
>
>
> SELinux is disabled
> Apache is set to debug on the logging
> The machine I have accessing the server has a modified hosts file pointing
> test.net and www.test.net to 172.16.5.134
> The error file gives me:
> "(13)Permission denied: access to / denied"
> The access file gives me:
> "GET / HTTP/1.1" 403 286
>
>
> If I remove my mods, and put a test index file into /var/www/html/, the
> system works fine (just no virtual hosts).  I am puzzled since the server
> does not have any issues with my config file and the file is identical
> (with
> the exception that this file has only one virtual domain name and the ip)
> to
> my config file on my online server that contains multiple domains.
>
> Can someone lead me to the promiss land?
>
> Thanks,
> Gilbert
>
>
>
> ------------------ httpd.conf mod ------------------
>
> NameVirtualHost 172.16.5.134:80
>
> <Directory "/home/*/pub_html/html">
>    Options Indexes FollowSymLinks
>    AllowOverride AuthConfig
>    Order allow,deny
>    Allow from all
> </Directory>
>
> <Directory "/home/*/pub_html/cgi-bin">
>    AllowOverride AuthConfig
>    # AllowOverride None
>    Options None
>    Order allow,deny
>    Allow from all
> </Directory>
>
> <Directory "/home/*/pub_html/icons">
>    Options Indexes MultiViews
>    AllowOverride None
>    Order allow,deny
>    Allow from all
> </Directory>
>
>
> <VirtualHost 172.16.5.134:80>
>    ServerAdmin gilbert at test.net
>    DocumentRoot /home/gilbert/pub_html/html
>    ServerName test.net
>    ServerAlias www.test.net
>    ScriptAlias /cgi-bin/ /home/gilbert/pub_html/cgi-bin/
>    Alias /icons/ /home/gilbert/pub_html/icons/
>    ErrorLog /var/log/httpd/test.net-error_log
>    CustomLog /var/log/httpd/test.net-access_log common
> </VirtualHost>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20090401/71c4657c/attachment.htm 


More information about the PLUG-discuss mailing list