哪里可以找到WAMP错误日志?

时间:2013-10-31 17:26:47

标签: apache ssl wamp httpd.conf

我在Windows上使用WAMP2.2。我需要在我的服务器上设置SSL端口。我的Apache,WAMP和网站在没有SSL的情况下运行良好。但是当我取消注释该行

Include conf/extra/httpd-ssl.conf 

在我的 httpd.conf 中,WAMP服务器不再工作了。(重新启动时它仍为橙色)。我认为 httpd-ssl.conf 中的配置有问题。但我想知道如何找到不让WAMP正常启动的错误。 WAMP有错误日志文件吗?

我在 wamp / logs / apache-error.log 上发现了这些错误:

Script not found or unable to start: wamp/bin/apache/apache2.4.2/cgi-bin/php
Script not found or unable to start: wamp/bin/apache/apache2.4.2/cgi-bin/php5
Script not found or unable to start: wamp/bin/apache/apache2.4.2/cgi-bin/php-cgi
Script not found or unable to start: wamp/bin/apache/apache2.4.2/cgi-bin/php4

这些错误是否与SSL配置有关。如果是这样我该怎么办?

1 个答案:

答案 0 :(得分:33)

如果您使用64位版本,WAMPServer中的Apache会将错误写入C:\wamp\logs文件夹或C:\wamp64\logsMYSQLPHP

也是如此

如果Apache或MySQL在打开自己的error.log之前发现错误,它也会向Windows Event Log写入错误。

尝试打开命令窗口和

>CD c:\wamp\bin\apache\apachex.y.z\bin

然后运行

httpd -t

这应该检查配置并将任何错误返回到命令窗口。