2

Apache 似乎运行正常,当我进入 xampp 控制面板时,我可以检查 phpinfo() 并且一切正常。当我尝试在浏览器中打开任何 php 文件时,页面是空白的。

这是我的 Apache 错误日志

[Wed Aug 29 07:07:19.160419 2012] [ssl:warn] [pid 280:tid 376] AH01873: Init: Session    Cache is not configured [hint: SSLSessionCache]
[Wed Aug 29 07:07:19.768831 2012] [mpm_winnt:notice] [pid 280:tid 376] AH00455: Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4 configured -- resuming normal operations
[Wed Aug 29 07:07:19.768831 2012] [mpm_winnt:notice] [pid 280:tid 376] AH00456: Server built: May 13 2012 14:10:15
[Wed Aug 29 07:07:19.768831 2012] [core:notice] [pid 280:tid 376] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Aug 29 07:07:19.768831 2012] [mpm_winnt:notice] [pid 280:tid 376] AH00418: Parent: Created child process 424
[Wed Aug 29 07:07:20.673648 2012] [ssl:warn] [pid 424:tid 268] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Aug 29 07:07:20.767250 2012] [mpm_winnt:notice] [pid 424:tid 268] AH00354: Child: Starting 150 worker threads.
[Wed Aug 29 07:18:17.441000 2012] [mpm_winnt:notice] [pid 280:tid 376] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Aug 29 07:19:34.371074 2012] [core:warn] [pid 1608:tid 376] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Aug 29 07:19:35.104275 2012] [ssl:warn] [pid 1608:tid 376] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Aug 29 07:19:38.193080 2012] [mpm_winnt:notice] [pid 1608:tid 376] AH00455: Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4 configured -- resuming normal operations
[Wed Aug 29 07:19:38.224280 2012] [mpm_winnt:notice] [pid 1608:tid 376] AH00456: Server built: May 13 2012 14:10:15
[Wed Aug 29 07:19:38.224280 2012] [core:notice] [pid 1608:tid 376] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Aug 29 07:19:38.317881 2012] [mpm_winnt:notice] [pid 1608:tid 376] AH00418: Parent: Created child process 2812
[Wed Aug 29 07:19:40.221084 2012] [ssl:warn] [pid 2812:tid 268] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Aug 29 07:19:40.252284 2012] [mpm_winnt:notice] [pid 2812:tid 268] AH00354: Child: Starting 150 worker threads.
4

2 回答 2

2

您使用的是 Windows 7

Windows 7 具有使用端口 80 的网络服务器

所以apache可能没有运行。检查端口 80 是否正在使用

要更改 Xampp apache 的端口号,请检查此链接 Xampp server port

于 2012-08-29T12:03:37.383 回答
0

我在工作安装中遇到了这种情况,结果发现 Skype 正在运行并阻止了我使用的正常端口。

于 2013-03-21T13:25:06.250 回答