當登入openwebmail (http://127.0.0.1/webmail)

出現Couldn't write /var/log/openwebmail.log! (Permission denied)

表示權限被拒絕啦!

 

執行以下:

touch /var/log/openwebmail.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*

說明
touch /var/log/openwebmail.log #產生日誌文件
chcon -u system_u /var/log/openwebmail.log #修改文件權限
chcon -t httpd_sys_script_rw_t /var/log/openwebmail.log #改使用權限

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 kinomelma 的頭像
    kinomelma

    基尼而絲(G.N.A.S)的大世界

    kinomelma 發表在 痞客邦 留言(0) 人氣()