2017-04-07 64 views
0

我最近首次安装了xamp服务器,并希望在本地服务器上运行php网站。当我启动Apache模块XAMP服务器那么就说明下面的错误但是MySQL的启动和运行良好:无法在xamp服务器中启动Apache模块

9:04:58 PM [Apache] Attempting to start Apache app... 
9:04:58 PM [Apache] Status change detected: running 
9:04:58 PM [Apache] Status change detected: stopped 
9:04:58 PM [Apache] Error: Apache shutdown unexpectedly. 
9:04:58 PM [Apache] This may be due to a blocked port, missing dependencies, 
9:04:58 PM [Apache] improper privileges, a crash, or a shutdown by another method. 
9:04:58 PM [Apache] Press the Logs button to view error logs and check 
9:04:58 PM [Apache] the Windows Event Viewer for more clues 
9:04:58 PM [Apache] If you need more help, copy and post this 
9:04:58 PM [Apache] entire log window on the forums 

我这样做对我的软件测试任务。我必须在本地服务器上测试一个网站,为此我安装了xamp服务器。谁能帮忙?

+0

你按下日志按钮?它说什么日志文件? – dparoli

回答

0

可能有很多可能的答案。最常见的是运行在端口80上的另一个程序。我遇到了同样的问题,然后发现我的Vagrant盒运行在端口80上。

如果您的计算机上安装了Skype,请将您的apache端口更改为别的东西。

要做到这一点,去XAMPP /阿帕奇/ conf目录/ httpd.conf文件,并在httpd.conf更改下面一行:

ServerName localhost:80 

ServerName localhost:81 

此外,如果它不工作,更改以下行以及:

 Listen 80 
    to 
    Listen 81 
+0

我已经打开你所说的文件。你能否告诉你在哪里提到你所提到的路线?正如我已经检查,并没有文件说明serverName localhost:东西 –

+0

你在使用什么操作系统? – Dipen

+0

使用Windows 8.1 –