권한 거부됨: AH00649: 전송 로그 파일을 열 수 없습니다.

권한 거부됨: AH00649: 전송 로그 파일을 열 수 없습니다.

Google Compute에 새로운 CentOS 7 + Apache 2.4 서버를 설정했는데 가상 호스트를 구성하고 작동하는 데 몇 가지 문제가 있습니다. 저는 이전에 CentOS 6 + 2.2 Apache 서버를 사용했습니다.

아래 줄 CustomLog은 Apache가 오류를 발생시키고 시작을 거부하는 원인입니다. 즉, 해당 줄을 주석 처리하면 Apache가 정상적으로 시작되고 내 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>

Apache를 시작하려고 할 때 오류 로그에 나타나는 내용은 다음과 같습니다.

[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

저는 수년 동안 Linux와 Unix를 사용해 왔지만 SELinux는 처음 사용합니다. 다음은 ls -Zd로그 디렉토리로 이어지는 각 디렉토리 의 출력입니다 .

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

내가 도대체 ​​뭘 잘못하고있는 겁니까?

관련 정보