在哪里可以找到 WAMP 错误日志? [英] Where can I find the WAMP error log?
问题描述
我在 Windows 上使用 WAMP2.2.我需要在我的服务器上设置 SSL 端口.我的 Apache、WAMP 和站点在没有 SSL 的情况下运行良好.但是当我取消注释该行
I am using WAMP2.2 on Windows. I need to set up SSL port on my server. My Apache, WAMP and site work well without SSL. But when I uncomment the line
Include conf/extra/httpd-ssl.conf
在我的 httpd.conf 中,WAMP 服务器不再工作.(当我重新启动时它保持橙色).我认为 httpd-ssl.conf 中的配置有问题.但我想知道如何找到无法让 WAMP 正常启动的错误.是否有 WAMP 的错误日志文件?
in my httpd.conf, the WAMP Server is not working anymore.(It remains orange when I restart). I assume that something is wrong with the configurations in httpd-ssl.conf. But I am wondering how I can find the error that doesn't let WAMP to start properly. Is there any error log file for WAMP?
我在 wamp/logs/apache-error.log 上发现了这些错误:
I found these errors on 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 配置有关.如果是这样,我该怎么办?
Are these errors related to SSL configuration. And if so what should I do?
推荐答案
WAMPServer 中的 Apache 将错误写入 C:\wamp\logs
文件夹或 C:\wamp64\logs
如果您使用的是 64 位版本,MYSQL
和 PHP
Apache in WAMPServer writes errors to the C:\wamp\logs
folder or C:\wamp64\logs
if you are using the 64bit version, as does MYSQL
and PHP
如果 Apache 或 MySQL 在打开它们自己的 error.log
之前发现错误,它也会将错误写入 Windows 事件日志
.
If Apache or MySQL find errors before they can open their own error.log
it will write errors to the Windows Event Log
as well.
尝试打开命令窗口并
>CD c:\wamp\bin\apache\apachex.y.z\bin
然后运行
httpd -t
那应该检查配置并将任何错误返回到命令窗口.
That should check the config and return you any errors to the command window.
这篇关于在哪里可以找到 WAMP 错误日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!