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

Apache2 Berechtigungsproblem



Hallo Liste
Nachdem ich gestern Mühe hatte mit der Konfig, komme ich jetzt mit der 
Berechtigung nicht weiter.


Im Browser erhalte ich folgendes:
----------------
Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an 
ErrorDocument to handle the request.

----------------

Mein Apache2 läuft unter dem User www-data (Output lsof -i):
COMMAND    PID        USER   FD   TYPE DEVICE SIZE NODE NAME
...
apache2   2280        root    3u  IPv4   5312       TCP mond:www (LISTEN)
apache2   2280        root    4u  IPv4   5313       TCP mond:webcache (LISTEN)
apache2   4350    www-data    3u  IPv4   5312       TCP mond:www (LISTEN)
apache2   4350    www-data    4u  IPv4   5313       TCP mond:webcache (LISTEN)
apache2   4351    www-data    3u  IPv4   5312       TCP mond:www (LISTEN)
apache2   4351    www-data    4u  IPv4   5313       TCP mond:webcache (LISTEN)
apache2   4352    www-data    3u  IPv4   5312       TCP mond:www (LISTEN)
apache2   4352    www-data    4u  IPv4   5313       TCP mond:webcache (LISTEN)
apache2   4353    www-data    3u  IPv4   5312       TCP mond:www (LISTEN)
apache2   4353    www-data    4u  IPv4   5313       TCP mond:webcache (LISTEN)
apache2   4354    www-data    3u  IPv4   5312       TCP mond:www (LISTEN)
apache2   4354    www-data    4u  IPv4   5313       TCP mond:webcache (LISTEN)
apache2   4358    www-data    3u  IPv4   5312       TCP mond:www (LISTEN)
apache2   4358    www-data    4u  IPv4   5313       TCP mond:webcache (LISTEN)

mindestens wollte ich das so und interpretiere das auch so.

Die Files im DocumentRoot habe folgende Berechtigung:
-rwxrwxrwx    1 www-data entw          674 Jul 19 14:41 index.html
-rwxrwxrwx    1 www-data entw         1003 Jul 19 14:41 index.php

habe es auch schon mit 644 probiert. Der User www-data ist auch in der Gruppe 
entw (Auszug aus /etc/group):
entw:x:505:www-data

Verstehe ich das falsch? Mit 0777 müssten die Files ja sowieso lesbar sein, 
aber auch mit 644 sollte das kein problem sein. Zudem stimmt mit www-data 
User und dessen Gruppe es würde also auch 0640 oder so reichen.

Im Custom log sehe ich folgendes:

192.168.0.26 - - [21/Jul/2004:09:22:15 +0200] "GET / HTTP/1.1" 403 321

Im Error Log:

[Wed Jul 21 09:22:15 2004] [error] [client 192.168.0.26] (13)Permission 
denied: access to / denied

Hat mir jemand einen Tipp?

Danke&Gruss
Marco




Reply to: