Berechtigung verweigert: AH00649: Übertragungsprotokolldatei konnte nicht geöffnet werden

Berechtigung verweigert: AH00649: Übertragungsprotokolldatei konnte nicht geöffnet werden

Ich habe einen neuen CentOS 7 + Apache 2.4-Server auf Google Compute eingerichtet und habe einige Probleme, meine virtuellen Hosts zu konfigurieren und zum Laufen zu bringen. Zuvor war ich auf einem CentOS 6 + 2.2 Apache-Server.

Die CustomLogfolgende Zeile ist der Grund dafür, dass Apache den Fehler ausgibt und den Start verweigert. Mit anderen Worten: Wenn ich diese Zeile auskommentiere, startet Apache einwandfrei und stellt die Dateien in meinem bereit DocumentRoot.

<VirtualHost *:80>
    ServerName bethesparkle.com
    ServerAlias www.bethesparkle.com
    <Directory /var/www/users/kenny/domains/bethesparkle.com/html>
        Options Indexes FollowSymLinks MultiViews ExecCGI Includes
        AllowOverride All
    </Directory>
    DocumentRoot /var/www/users/kenny/domains/bethesparkle.com/html
    CustomLog /var/www/users/kenny/domains/bethesparkle.com/logs/access.log combined
</VirtualHost>

Folgendes wird im Fehlerprotokoll angezeigt, wenn ich versuche, Apache zu starten:

[log_config:error] [pid 27405] (13)Permission denied: AH00649: could not open transfer log file /var/www/users/kenny/domains/bethesparkle.com/logs/access.log.
AH00015: Unable to open logs

Ich verwende Linux und Unix seit Jahren, aber SELinux ist für mich neu, nur zu Ihrer Information. Hier ist die Ausgabe ls -Zdfür jedes Verzeichnis bis zum Protokollverzeichnis:

drwxr-xr-x. root root system_u:object_r:var_t:s0       /var
drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 /var/www
drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 /var/www/users
drwxr-xr-x. kenny apache unconfined_u:object_r:httpd_sys_content_t:s0 /var/www/users/kenny
drwxr-xr-x. kenny apache unconfined_u:object_r:httpd_sys_content_t:s0 /var/www/users/kenny/domains
drwxr-xr-x. kenny apache unconfined_u:object_r:httpd_sys_content_t:s0 /var/www/users/kenny/domains/bethesparkle.com
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 /var/www/users/kenny/domains/bethesparkle.com/logs

Was mache ich falsch?

verwandte Informationen