状态127的Apache退出

我刚刚安装了ssl的Apache 2,但是当我尝试启动过程中出现错误

httpd starting. exit status 127

即使使用LogLevel debugconfiguration了httpd.conf,也没有日志。 我还能在哪里寻找线索来解决这个问题?

将不会有一个标准的Apache错误日志,因为该服务尚未开始。 127状态码意味着没有find命令。

你是如何安装apache2的? 哪个unix发行? 你用“ssl”表示什么意思?

检查/ var / log … dmesg,消息或类似的系统日志

尝试直接启动Apache,而不是通过启动脚本。

 sudo /usr/sbin/httpd -X -e 9 -E /var/log/httpd/startup_errors.log 

这应该给你更多的信息。

我上面select的选项是:

 -e level : show startup errors of level (see LogLevel) -E file : log startup errors to file -X : debug mode (only one worker, do not detach)