當我想要重新啓動在CentOS 6.7 httpd的searvice我有以下錯誤:權限被拒絕:的httpd:無法打開錯誤日誌文件/ etc/httpd的/日誌/ error_log中
/etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: (13)Permission denied: httpd: could not open error log file /etc/httpd/logs/error_log.
Unable to open logs
[FAILED]
這是error_log中:
ls -Z /etc/httpd/logs/error_log
-rw-r--r--. root root unconfined_u:object_r:var_t:s0 /etc/httpd/logs/error_log
我也禁用了selinux。
什麼問題?
這是CentOS的,所以我認爲我們沒有'www-data'。 – MLSC
@MLSC然後更改Apache數據庫,如httpd wiki片段中所述 – Asur