2023-05-12 开启多语言插件支持……

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

apache 苏 demo 2194℃ 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)