Apache Webserver在windows7上停止工作


Apache Webserver stopped working on windows7

我有一个Apache 2.4.9 web服务器在windows7上运行php5。它本来工作得很好,但现在不能运行了。我在应用程序日志中没有看到php,在Apache日志中也没有看到。

我不知道如何在windows中解决php5问题。我不能运行任何phpinfo();但是我可以看到php在Apache日志

中的启动位置。
[Mon May 12 17:26:49.832429 2014] [mpm_winnt:notice] [pid 1388:tid 528] AH00455: Apache/2.4.9 (Win32) PHP/5.5.11 configured -- resuming normal operations

我没有看到PHP崩溃的通知。页面是http://rm362c.umecheme.maine.edu/现在可以在源代码中看到PHP了。

我可以采取什么步骤来排除和调试php5,因为它属于Apache2.4和Windows7?

将以下行添加到php.ini中以查看浏览器中的php错误——
error_reporting = -1
display_errors = On
在您的生产环境中删除上面的行(来源:http://php.net/manual/en/errorfunc.configuration.php#89648)。
更多信息请查看http://php.net/manual/en/errorfunc.configuration.php .

如果端口80被Skype或其他一些应用程序阻塞,您将无法运行apache,因为http需要端口80,https需要端口443打开。或者如果你有IIS web服务器,它也可能是原因。

如果是windows7上的示例,请阅读下面的文章了解更多细节

http://www.nextofwindows.com/how-to-troubleshoot-xampp-apache-not-running-on-windows-7/