Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
929 views
in Technique[技术] by (71.8m points)

apache - Where can I find the WAMP error log?

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 

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?

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

Are these errors related to SSL configuration. And if so what should I do?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Apache in WAMPServer writes errors to the C:wamplogs folder or C:wamp64logs if you are using the 64bit version, as does MYSQL and PHP

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.

Try opening a command window and

>CD c:wampinapacheapachex.y.zin

Then run

httpd -t

That should check the config and return you any errors to the command window.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...