2018年04月6日网站服务器迁移完成……

“Unable to open logs” error when I try to restart Apache

apache 苏 demo 1037℃ 0评论

There is possibly more broken, because you also get

Unable to open logs

First of all, enable more logging

LogLevel debug

in your /etc/apache2/apache2.conf.

Check your file permissions in /var/log/apache2.

I use often following command to debug:

strace -f apache2ctl start 2>&1|grep -v " ENOENT " | grep -Ee " E[A-Z]+"

It shows you excactly which calls are failed.

[Edit]

Another reason could produce overlapping listen adresses like:

Listen *:80
Listen 1.2.3.4:80
打赏

转载请注明:苏demo的别样人生 » “Unable to open logs” error when I try to restart Apache

   如果本篇文章对您有帮助,欢迎向博主进行赞助,赞助时请写上您的用户名。
支付宝直接捐助帐号oracle_lee@qq.com 感谢支持!
喜欢 (1)or分享 (0)
发表我的评论
取消评论
表情