Apache2 Permission denied: access to / denied

Posted by futureled on Server Fault See other posts from Server Fault or by futureled
Published on 2010-05-11T17:31:17Z Indexed on 2010/05/11 17:34 UTC
Read the original article Hit count: 811

Filed under:

Hi,

after installing and starting apache2 i can't open the website and got the error "Forbidden You don't have permission to access / on this server." I tried some different options in the httpd.conf, but nothing helped me solving this problem.

All permissions for every directory are "drwxr-xr-x". The directory /www contains a file names index.html with the same permissions. Please do not wonder, the time in the errorlog is not correctly. I have no idea what the problem is, i hope someone can help me.

my httpd.conf:

ServerRoot "/etc/apache2"
Listen 80

    User daemon
    Group daemon

    ServerAdmin [email protected]
    DocumentRoot "/var/www"

        Options FollowSymLinks
    AllowOverride None
    Order Deny,Allow
    Deny from all

    
        Options Indexes FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
    

    DirectoryIndex index.html


    Order allow,deny
    Deny from all
    Satisfy All

ErrorLog /var/apache2/logs/error_log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common

<IfModule logio_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog /var/apache2/logs/access_log common

ScriptAlias /cgi-bin/ "/usr/share/apache2/cgi-bin/"

AllowOverride None Options None Order allow,deny Allow from all

DefaultType text/plain

TypesConfig /etc/apache2/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz SSLRandomSeed startup builtin SSLRandomSeed connect builtin

my error_log:


[Sat Jan 01 00:50:26 2000] [notice] caught SIGTERM, shutting down
[Sat Jan 01 00:50:33 2000] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Jan 01 00:50:34 2000] [notice] Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.8j configured -- resuming normal operations
[Sat Jan 01 00:50:36 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
[Sat Jan 01 00:50:37 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
[Sat Jan 01 00:50:37 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
[Sat Jan 01 00:50:37 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
[Sat Jan 01 00:50:38 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied
[Sat Jan 01 00:50:38 2000] [error] [client 192.168.1.44] (13)Permission denied: access to / denied

© Server Fault or respective owner

Related posts about apache2