2013-01-11 86 views
1

几个月前我安装了XAMPP,它一直在正常工作。但最近当我打开它时,我得到一个端口被占用的错误。从XAMPP运行Apache服务时出错

现在,每当我开始我的XAMPP和运行Apache服务我得到这些错误:

Apache Service detected with wrong path 
Change XAMPP Apache settings or 
Uninstall/disable the other service manually first 
Found Path: ERROR: Not Able To Open Service Manager 
Expected Path: "d:\my local server\xampp\apache\bin\httpd.exe" -k runservice 
Problem detected! 
Port 80 in use by "system"! 
Apache WILL NOT start without the configured ports free! 
You need to uninstall/disable/reconfigure the blocking application 
or reconfigure Apache to listen on a different port 

也许是被一些系统进程端口80?

这些错误是什么意思,我该如何处理它们?

回答

2

重新配置Apache以使用不同的端口非常容易。

  1. 查找Apache的配置文件(它可能在d:\my local server\xampp\apache\conf,但我从来没有使用XAMPP,所以我还不能肯定)。该文件可能会被命名为httpd.conf
  2. 寻找以Port开头的行。它可能是Port 80Port 127.0.0.1:80
  3. 把80换成别的东西。
  4. 重新启动您的服务。

至于停止其他服务,你首先需要找出它是什么。由于这是80端口,您很可能会运行另一个Web服务器。首先要看的是您的服务面板(Start > Run > services.msc)。在标题中查找与Apache,WebInternet的任何内容。您可能已安装捆绑了某个Apache版本的其他软件,或者您可能安装了Internet Information Server。

如果在服务中找不到任何明显的东西,您可以查找使用该端口的进程。还有你可以下载到使这更容易的工具,但使用股票工具Windows附带:

  1. 打开命令提示符(Start > Run > cmd
  2. 运行netstat -ao
  3. 照照Local Address列的东西结束与:80:http
  4. 找到PID该连接(最后一栏)
  5. 运行任务管理器,进入View > Select Columns...并启用PID列
  6. 找到该PID的可执行文件名称
  7. 使用Google了解该进程是什么,它用于什么以及如何关闭它(通常只需找到它在“服务”面板中使用的名称)
0

在提升的命令提示符中使用netstat -bano来查看哪些应用正在哪些端口上侦听。

但通常下列应用程序使用Windows中的端口80。

IIS 
World Wide Web Publishing service 
IIS Admin Service 
SQL Server Reporting services 
Web Deployment Agent Service 

停止上面的应用程序,如果运行和检查!

的情况下
1

检查正在使用Skype的登录状态,先注销Skype的然后开始appache因为Skype还端口80上运行,否则改变http.config端口任何其他你的幸运数字

1

Yoour预期有问题的路径指出可能有多个mysql实例。在Windows资源管理器中搜索mysql。如果程序正在寻找

预期路径: “d:\我的本地服务器\ XAMPP的\ apache的\斌\ httpd.exe” -k runservice

确保您httpd.exe是在正确的地方。我有完全相同的问题,并将bin/apache文件夹移到正确的位置。

全部细节在这里:

http://hodentekhelp.blogspot.com/2014/02/on-installing-apache-on-windows-7-64bit.html

5

我的解决方案是非常容易:启动XAMPP-CONTROL.EXE作为管理员。 然后明显的错误消失了。

我没有改变任何端口或停止任何进程。

0

我解决了我的问题。几天前,我已经安装了Apache Tomcat for JSP练习,并且随着这一点,我开始使用XAMPP来处理PHP,问题是两台服务器我都使用相同的端口,因此试图从services.msc中停止Apache Tomcat> Apache Tomcat 9.0,当我再次启动XAMPP时,XAMPP Apache服务器成功启动