2015年12月31日 星期四

OpenWebMail 登入時出現錯誤:無法寫入 /var/log/openwebmail.log! (Permission denied)

CentOS release 6.6 (Final)
OpenWebMail version 2.53

安裝 OpenWebMail 時有遇過這個問題
http://pejslin.blogspot.tw/2014/04/centos-openwebmail.html

重新設定 SELinux 即可
touch /var/log/openwebmail.log <==這是產生一個log檔
chcon -u system_u /var/log/openwebmail.log <==這是修改檔案使用者權限
chcon -t httpd_sys_script_rw_t /var/log/openwebmail.log <==這是修改寫入權限
chcon -t httpd_unconfined_script_exec_t /var/www/cgi-bin/openwebmail/openwebmail* <==這是修改檔案由什麼套件專用

發生原因可能是執行 yum update

沒有留言:

張貼留言