Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden. Du solltest ein Upgrade durchführen oder einen alternativen Browser verwenden.
kannst Du Dein Problem etwas präziser beschreiben, z.B.
- die DocumentRoot-Definition aus httpd.conf
- alle Directory-Blöcke aus httpd.conf
- Rechte auf dem als Doc-Root verwendeten Verzeichnis
- konkrete Fehlermeldung, die beim Aufruf einer PHP-Seite im Browser angezeigt wird
- Log-Einträge aus /var/log/apache2/error_log
- etc.?
Ohne weitere Infos würde ich darauf tippen, daß entweder für Dein Document-Root auf Filesystem-Ebene nicht die richtigen Rechte gesetzt sind oder daß Du für Dein Document-Root keinen entsprechenden <Directory>-Block (mit Allow from all) in der httpd.conf eingetragen hast.
Die httpd.conf verweist auf auf die default-server.conf
Unten abgebildet ist der relevante Abschnitt der default-conf, wie ich sie vorgefunden habe.
DocumentRoot "/srv/www/htdocs" habe ich durch
DocumentRoot "/daten/prog/php" ersetzt.
Als darin befindliche php-Dateien nicht ausgeführt wurden, hab ich das Verzeichnis auch in dem Abschnitt Configure the DocumentRoot geändert.
In beiden Fällen habe ich brav /etc/init.d/apache2 restart ausgeführt.
Besitzer des Verzeichnisses /srv ist root. Alle Benutzer haben sämtliche Zugriffsrechte.
------------------------------------------------------
DocumentRoot "/srv/www/htdocs"
#
# Configure the DocumentRoot
#
<Directory "/srv/www/htdocs">
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
Options None
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride None
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
</Directory>