Apache不会在xampp中运行

Mad*_*dde 25 apache xampp port

我刚刚安装了XAMPP,一切正常,但我无法运行apache.似乎端口80是问题,我已禁用Skype使用端口80,但它似乎没有解决它.我读到某个地方SSL端口可能是问题,应该更改.但我无法弄清楚端口是或如何改变它.

"Check the "/xampp/apache/logs/error.log" file"
Run Code Online (Sandbox Code Playgroud)

我试图检查这个文件,但在"日志"里面没有任何东西.从apache我可以去错误,但没有最近更改的文件.

错误:

20:34:24  [Apache]  Problem detected!
20:34:24  [Apache]  Port 80 in use by "system"!
20:34:24  [Apache]  Apache WILL NOT start without the configured ports free!
20:34:24  [Apache]  You need to uninstall/disable/reconfigure the blocking application
20:34:24  [Apache]  or reconfigure Apache to listen on a different port

20:40:50  [Apache]  Attempting to start Apache app...
20:40:50  [Apache]  Status change detected: running
20:40:51  [Apache]  Status change detected: stopped
20:40:51  [Apache]  Error: Apache shutdown unexpectedly.
20:40:51  [Apache]  This may be due to a blocked port, missing dependencies, 
20:40:51  [Apache]  improper privileges, a crash, or a shutdown by another method.
20:40:51  [Apache]  Check the "/xampp/apache/logs/error.log" file
20:40:51  [Apache]  and the Windows Event Viewer for more clues
Run Code Online (Sandbox Code Playgroud)

如何修复这些错误?

Afr*_*anJ 43

如果您只想让Apache运行,请不要介意它运行的端口,请执行以下操作:

在XAMPP控制面板中,单击Apache - "配置"按钮,该按钮位于"日志"按钮旁边.

从下拉列表中选择"Apache(httpd.conf)".(记事本应该打开)

Ctrl+ F找'80'.点击"查找下一个"三次,然后将行更改Listen 80Listen 8080

再次点击"查找下一个",直到您看到行ServerName localhost:80更改为ServerName localhost:8080

执行Ctrl+ S保存,然后退出记事本.

在XAMPP控制面板中再次启动Apache,Apache应该成功运行.

使用http://localhost:8080/在浏览器地址栏,检查一切正常.

编辑

此外,您在运行IIS时可能会遇到运行XAMPP的问题.如果您正在运行IIS,则可能需要停止服务然后启动XAMPP.


sha*_*sh7 21

找出哪个其他服务使用端口80.

我听说skype使用端口80.检查端口80上没有其他服务器或数据库在后台运行.

xampp的两个很好的替代品是wampeasyphp.除此之外,wamp是最友好的用户,它还有一个内置工具,用于检查端口80是否正在使用以及当前正在使用哪个服务.

或者禁用iis.众所周知,默认情况下使用端口80.

  • 打开cmd并输入"netstat -aon",不带引号.这将列出所有带有pid的服务.找出服务(使用端口80的服务)并列出其pid.然后打开任务管理器,转到服务选项卡并使用相应的pid终止该进程. (2认同)

Muh*_*man 13

有两种方法可以解决这个问题.

  1. 如果你想在另一个端口运行Apache,那么:在xampp/apache/conf/httpd.conf中替换"ServerName localhost:80"by"ServerName localhost:81"在第184行.之后,即使它可能无法工作.然后更换
#Listen 0.0.0.0:80
#Listen [::]:80
Listen 80 
Run Code Online (Sandbox Code Playgroud)

通过

#Listen 0.0.0.0:81
#Listen [::]:81
Listen 81
Run Code Online (Sandbox Code Playgroud)

在第45行

  1. 如果要使用端口80,请执行以下操作.在Windows 8"World Wide Publishing Service正在使用此端口并停止此服务将释放端口80,您可以使用此端口连接Apache.要停止服务,请转到"任务管理器 - >服务选项卡",右键单击"全球发布服务"并停止.如果你没有找到那么然后去"运行> services.msc"并再次找到并右键单击"全球发布服务"并停止.

如果您没有找到"全球发布服务",那么请转到"运行>> resmon.exe >>网络选项卡>>侦听端口"并查看哪个进程正在使用端口80

在此输入图像描述

从"概述>> CPU"只需右键单击该过程,然后单击"结束进程树".如果该过程是可能是关键问题的系统.


Sti*_*nor 9

Skype,尝试关闭它然后运行xampp,如果它工作,然后更改Skype端口停止使用端口80


小智 7

看看这个网站:

http://www.lukebrowning.com/blog/nt-kernel-system-using-port-80/

就我而言,它是SQL Server报告服务,但其他人已经看过IIS或Web部署代理服务.

打开cmd窗口并运行services.msc,找到该服务并停止它.然后尝试启动Apache.如果可行,请禁用其他服务.


poo*_*dad 6

请注意,此问题通常会出现两个原因:

1端口80正忙.

2端口443正忙.

对于其他人说的第一名,你可以杀死Skype和SQL Serever Reporter

Windows任务管理器>"服务"选项卡>"服务..."按钮.

但如果它不起作用,可能是因为端口443,所以试试这个:

如果您使用VMware,请转到

Windows任务管理器>"服务"选项卡>"服务..."按钮,找到"VMware Workstation Server"服务,双击它并按"停止"按钮.

没有必要停止其他VMware的服务.

然后再次尝试运行Apache