失败的Apache2启动,无错误日志 [英] Failed Apache2 start, no error log

查看:1168
本文介绍了失败的Apache2启动,无错误日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我会重新启动的Apache2,但总会有一个错误

I would restart Apache2 but there comes an Error

$ sudo service apache2 start

Starting web server apache2

Action 'start' failed.
The Apache error log may have more information.

但/无功/日志/的Apache2 /所有的错误日志为空。

But all error logs in "/var/log/apache2/" are empty.

编辑:的文件是在/无功/日志/ Apache2的,有从previous问题的几个条目,但这个任务不会创建任何新的etry ...

The Files are at "/var/log/apache2" and there are several entries from previous Problems but this Task doesn't create any new etry ...

问题出在哪里?

这是在SSL证书一个错误和路径error.log中,在虚拟主机配置发生变化。

It was a error in the SSL Certificate and the path to the "error.log" are changed in the vHost configuration.

如果您不需要SSL(我没有,因为我运行一个本地系统)简单地禁用全部
虚拟主机HTTPS / SSL entrys通过命令行线路的配置了。

If you don't need SSL (i don't because i'm running a local system) simply disable all vHost HTTPS/SSL entrys in the configuration by command line for line out.

推荐答案

谢谢,蒂姆!大难倒的我。其他一些细节其他人可能有帮助的:

Thanks, Tim! Big stumper for me. A few other details others may find helpful:

(的Apache2在Ubuntu 12.04)

(Apache2 on Ubuntu 12.04)

我有同样的服务器上运行两个网站和刚刚更新了SSL证书为其中之一。在重新启动服务器时,我得到了晦涩的消息既不现场工作(明显)。我也发现在配置文件中的日志文件重定向。我跟踪下来,发现问题(在现场我刚刚更新了日志文件)。

I have two sites running on the same server and had just updated the SSL cert for one of them. Upon restarting the server, I got that cryptic message and neither site worked (obviously). I too found the redirect for the log files in the config files. I tracked that down and found the issue (in the log file for the site I had just updated).

我的配置文件位于在/ etc / apache2的/网站可用

My config files are located in /etc/apache2/sites-available

VIM或猫的文件(猫{文件名})并查找错误日志行。这告诉你去哪里找你的服务器上。该文件的猫,我发现该错误信息是:

vim or cat the file (cat {filename}) and look for the ErrorLog line. That tells you where to look on your server. cat that file and the error message I found was:

[error] Unable to configure RSA server private key
[error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
[warn] RSA server certificate CommonName (CN) `<snip>.com' does NOT match server name!?

我抄袭了我的证书文件,一个错误的目录。我简单地将它移动到正确的目录,然后一切都很好下一次启动。 (提示:如果这些文件应该也是在配置文件;)

I had copied one of my cert files to the wrong directory. I simply moved it to the correct directory and everything was fine on the next start. (tip: where those file should be is also in the config file ;)

这篇关于失败的Apache2启动,无错误日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆