Apache在Xampp中启动时显示错误

时间:2019-02-14 05:44:05

标签: apache xampp localhost

我最近安装了xampp服务器,版本为7.3.1。当我尝试启动mysqlapache时。 sql服务器正常启动,但Apache无法启动,并显示以下错误

11:05:42 AM  [Apache]   Problem detected!
11:05:42 AM  [Apache]   Port 80 in use by "Unable to open process" with PID 4!
11:05:42 AM  [Apache]   Apache WILL NOT start without the configured ports free!
11:05:42 AM  [Apache]   You need to uninstall/disable/reconfigure the blocking application
11:05:42 AM  [Apache]   or reconfigure Apache and the Control Panel to listen on a different port
11:05:42 AM  [Apache]   Attempting to start Apache app...
11:05:42 AM  [Apache]   Status change detected: running
11:05:48 AM  [Apache]   Status change detected: stopped
11:05:48 AM  [Apache]   Error: Apache shutdown unexpectedly.
11:05:48 AM  [Apache]   This may be due to a blocked port, missing dependencies, 
11:05:48 AM  [Apache]   improper privileges, a crash, or a shutdown by another method.
11:05:48 AM  [Apache]   Press the Logs button to view error logs and check
11:05:48 AM  [Apache]   the Windows Event Viewer for more clues
11:05:48 AM  [Apache]   If you need more help, copy and post this
11:05:48 AM  [Apache]   entire log window on the forums

然后,我在Google上进行了搜索,发现我们需要将端口号80更改为任何数字。因此,我从80更改为81,然后重新启动服务器,它显示了相同的错误。

我做了如下端口更改

#Listen 12.34.56.78:81 #changed 80 to 81
Listen 81 #changed 80 to 81

ServerName localhost:81 #changed 80 to 81

image 有什么解决办法

1 个答案:

答案 0 :(得分:0)

尝试运行apache_start.bat来查看端口是否确实是问题所在。