PHP文件不能在新的xampp安装上运行

时间:2012-08-29 11:36:00

标签: php mysql xampp

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.

2 个答案:

答案 0 :(得分:2)

您使用的是Windows 7

吗?

Windows 7具有使用端口80

的网络服务器

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

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

答案 1 :(得分:0)

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