Apache Web Server停止在Windows 7上运行

时间:2014-05-12 21:34:22

标签: php windows apache webserver

我在Windows7上运行了一个运行php5的Apache 2.4.9网络服务器。它运作良好,但现在它还没有运行。我在应用程序日志和Apache日志中都没有看到php。

我不知道如何在Windows中解决php5问题。我不能运行任何phpinfo();脚本,但我可以看到在Apache日志中启动php的位置

[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。

我可以采取哪些步骤对Apache5进行故障排除和调试,因为它与Apache2.4和Windows7有关?

2 个答案:

答案 0 :(得分:3)

在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

答案 1 :(得分:1)

如果端口80被Skype或其他某些应用程序阻止,您将无法运行apache,因为http需要端口80并且https要求端口443打开。或者,如果您运行IIS Web服务器,也可能是原因。

如果在Windows7上的xampp

,请查看以下文章以获取更多详细信息

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

相关问题