Apache 配置文件中的 XAMPP PORT 80 是 Busy / EasyPHP 错误:

发布于 2024-12-15 06:34:55 字数 318 浏览 6 评论 0原文

这个问题彻底困扰了我一整天。我重新格式化了我的旧 Windows XP 组件并尝试安装 XAMPP,却发现当我尝试启动 Apache xampp 时声称端口 80 正忙......这意味着什么?

所以我尝试卸载并移动到 EasyPHP,当我安装时,我收到错误“Apache 配置文件中的错误:系统无法执行指定的程序”

不,我没有 Skype 或任何其他真正与此相关的程序这一点,就像我说的,我刚刚重新格式化,所以我不知道发生了什么。

我很想解决这个问题,但如果你给我留下答案,请具体说明方向,因为我只是编程,从来没有接触过 IT 和使用命令行,不适合我的东西并没有多大乐趣。

This problem has completely shot my entire day. I reformatted my old windows XP comp and tried installing XAMPP only to find that when i try to start Apache xampp claims port 80 is busy....WHAT DOES THAT EVEN MEAN?

So I tried just uninstalling and moving to EasyPHP instead and when I installed that I get the error "error in Apache configuration file: the system cannot execute the specified program"

No, I do not have Skype or any other programs really for that matter at this point, like I said I JUST REFORMATTED so idk whats going on.

I would love to get this fixed, but if you leave me a answer please be specific on directions bc I'm only programming, never been to big on IT and playing with command lines and what not for me isn't to much fun.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(13

关于从前 2024-12-22 06:34:56

释放端口 80 需要做的事情:

  1. 检查 Skype 是否正在运行,退出 Skype
  2. 检查 services.msc 如果 Web 部署代理服务正在运行,
  3. 检查 IIS 是否正在运行,将其停止。

启动 apache 后,您就可以登录 Skype。

Things to be done to free port 80:

  1. check if skype is running, exit from skype
  2. check services.msc if web deployment agent service is running
  3. check if IIS is running, stop it.

Once you start apache, you can sign into skype.

橘虞初梦 2024-12-22 06:34:56

一次只有一个进程可以使用 80 端口。端口 80 是 Web 服务器的默认端口,因此当您通过 HTTP 导航到网站时,实际上默认导航到该服务器的端口 80(当您使用 HTTPS 时,该端口为 443)。

您可以尝试查找在端口 80 上运行的所有程序,但有一种更简单的方法可以用于开发。运行XAMPP时,单击“Apache”下的“Config”。将 Listen 80 替换为 Listen 8080,并将 ServerName localhost:80 替换为 ServerName localhost:8080

然后,当您想查看您的杰作时,请在浏览器中导航至 http://localhost:8080

Only one process can use port 80 at a time. Port 80 is the default port for web servers, so when you navigate to websites over HTTP, you are actually navigating to that server's port 80 by default (when you use HTTPS, the port is 443).

You can try to hunt down all the programs that are running on port 80, but there's an easier way that will work for development. When running XAMPP, click "Config" under "Apache". Replace Listen 80 with Listen 8080 and ServerName localhost:80 to ServerName localhost:8080.

Then, when you want to look at your masterpiece, navigate to http://localhost:8080 in your browser.

亚希 2024-12-22 06:34:56

SQL Server Reporting Services (SSRS)
即使您卸载 SQL Server,SSRS 也可以保持活动状态。
要停止该服务:

打开 SQL Server 配置管理器。
在左侧窗格中选择“SQL Server 服务”。
双击“SQL Server 报告服务”。
点击停止。
切换到服务选项卡并将启动模式设置为“手动”。


Skype
令人恼火的是,Skype 可以切换到端口 80。要禁用它,请选择
工具 >选项>高级>连接,然后取消选中
“使用端口 80 和 443 作为传入连接的替代端口”


IIS (Microsoft Internet Information Server)

对于 Windows 7(或 vista),它是最有可能的罪魁祸首。您可以从命令行停止该服务。

打开命令行 cmd.exe 并键入:

net stop was /y

对于旧版本的 Windows,键入:

net stop iisadmin /y

其他

如果这不能解决问题,则需要进一步的检测工作(如果 IIS、SSRS 和 Skype)不怪。在命令行中输入以下内容:

netstat -ao

将列出活动的 TCP 地址和端口。找到本地地址“0.0.0.0:80”的行并记下 PID 值。启动任务管理器。导航到“进程”选项卡,如有必要,单击“查看”>“进程”。选择列以确保选中“PID(进程标识符)”。您现在可以找到上面记下的 PID。描述和属性应帮助您确定哪个应用程序正在使用该端口。

SQL Server Reporting Services (SSRS)
SSRS can remain active even if you uninstall SQL Server.
To stop the service:

Open SQL Server Configuration Manager.
Select “SQL Server Services” in the left-hand pane.
Double-click “SQL Server Reporting Services”.
Hit Stop.
Switch to the Service tab and set the Start Mode to “Manual”.


Skype
Irritatingly, Skype can switch to port 80. To disable it, select
Tools > Options > Advanced > Connection then uncheck
“Use port 80 and 443 as alternatives for incoming connections”.


IIS (Microsoft Internet Information Server)

For Windows 7 (or vista) its the most likely culprit. You can stop the service from the command line.

Open command line cmd.exe and type:

net stop was /y

For older versions of Windows type:

net stop iisadmin /y

Other

If this does not solve the problem further detective work is necessary if IIS, SSRS and Skype are not to blame. Enter the following on the command line:

netstat -ao

The active TCP addresses and ports will be listed. Locate the line with local address “0.0.0.0:80″ and note the PID value. Start Task Manager. Navigate to the Processes tab and, if necessary, click View > Select Columns to ensure “PID (Process Identifier)” is checked. You can now locate the PID you noted above. The description and properties should help you determine which application is using the port.

删除→记忆 2024-12-22 06:34:56

在命令提示符下运行:

netstat -ano | find ":80"

它会显示什么进程 (PID) 正在侦听端口 80。

从那里您可以打开任务管理器,确保您在列视图选项中选择了 PID,然后找到匹配的 PID 来查找这是什么过程。

如果它是 svchost.exe,您将不得不挖掘更多内容(请参阅 tasklist /svc)。

我最近遇到了这种情况,而且它也不是像 Skype 这样的流行答案,可能是 Adob​​e、Java,任何真正的答案。

Run this in command prompt:

netstat -ano | find ":80"

It will show you what process (PID) is listening on port 80.

From there you can open task manager, make sure you have PID selected in columns view option, and find the matching PID to find what process it is.

If its svchost.exe you'll have to dig more (see tasklist /svc).

I had this happen to me recently and it wasn't any of the popular answers like Skype either, could be Adobe, Java, anything really.

独闯女儿国 2024-12-22 06:34:56

端口 80 可能正忙于其他应用程序(例如 IIS)。如果你不想停止它,可以更改apache端口。方法如下..

  1. 转到 C:\xampp\apache\conf (安装 xampp 的目录)。现在,找到httpd.conf
  2. 使用任何文本编辑器(例如记事本)打开它,然后转到显示 Listen 80 的行,
  3. 使用任何其他端口(例如 Listen 1234)更改此内容
  4. 保存文件。重新启动服务器并继续。

Port 80 might be busy with other application like IIS. If you don't want to stop it, you can change the apache port. Here is the way..

  1. go to the C:\xampp\apache\conf (directory where you installed xampp). Now, locate the httpd.conf.
  2. Open it with any text editor (like notepad) and go the line that says Listen 80
  3. Change this with any other port (like Listen 1234)
  4. Save the file. Restart the server and go ahead.
热鲨 2024-12-22 06:34:56

当其他应用程序正在使用同一端口时,xampp 端口 80 正忙。可以使用以下方法之一解决此问题:

  1. 检测正在使用端口 80 的应用程序并将其关闭。
  2. 这个效率更高。 xampp 使用默认端口 80 安装 apache 服务器。因此,您可以手动将此端口更改为任意数字。

只需在xampp安装中找到httpd.conf文件并替换以下代码行即可。

#Listen 12.34.56.78:1234
Listen 80

到您选择的任何端口号。这里,我取了8000。

#Listen 12.34.56.78:1234
Listen 8000

在同一个文件httpd.conf中找到以下代码

ServerName localhost

替换为以下内容,取与上面代码中使用的相同的数字。

ServerName localhost:8000

有关详细答案,请检查 http: //webolute.com/blog/programming/this-may-be- due-to-a-blocked-port-missing-dependencies

xampp port 80 is busy when some other application is using the same port at that time. This can be solved by using one of the following methods:

  1. Detect the application which is using the port 80 and close it.
  2. This one is more efficient. xampp installs apache server with default port 80. So, you can change this port manually to any number.

Just find the httpd.conf file in xampp installation and replace the following line of code.

#Listen 12.34.56.78:1234
Listen 80

to any port number of your choice. Here, i have taken 8000.

#Listen 12.34.56.78:1234
Listen 8000

Find the following code in the same file httpd.conf

ServerName localhost

Replace with the following, take the same number you have used in upper code.

ServerName localhost:8000

For detailed answer, check http://webolute.com/blog/programming/this-may-be-due-to-a-blocked-port-missing-dependencies

明月夜 2024-12-22 06:34:56

只需做一件事

打开 skype >工具>高级或高级设置 将端口 80 更改为其他端口 7395

重新启动系统,然后启动 Apache

Just do one thing

open skype > tools > advance or advance settings Change port 80 to something else 7395

Restart your system then start Apache

并安 2024-12-22 06:34:56

我发现在较新的 Windows 安装上占用端口 80 的最大罪魁祸首是此列表中的 BranchCache 服务 (#3)...

  1. SQL Server Reporting Services

  2. Web部署代理服务

  3. BranchCache

  4. 万维网发布服务

这4个服务大概覆盖了90%占用端口 80 的本机 Windows 服务。

另外 10% 是隐藏的 HTTP.sys 服务/驱动程序,当其他服务请求时,它会占用端口 80。运行此命令以禁用它,然后重新启动。

sc config http start= disabled

除了 Skype 之外,TeamViewer 也是非常常用的安装软件,如果没有进行其他配置,它将占用端口 80。

列表取自: Opening为 Apache 在 Windows 上使用端口 80

I've found that the biggest culprit for taking up port 80 on newer Windows installs is the BranchCache Service (#3) in this list...

  1. SQL Server Reporting Services

  2. Web Deployment Agent Service

  3. BranchCache

  4. World Wide Web Publishing Service

These 4 service probably cover 90% of the native Windows Services that take up port 80.

The other 10% is the hidden HTTP.sys service/driver which takes port 80 when another service requests it. Run this to disable it, and reboot.

sc config http start= disabled

Aside from Skype, TeamViewer is also very commonly installed software, and will take port 80 if not configured otherwise.

List taken from: Opening Up Port 80 For Apache to Use On Windows

笑看君怀她人 2024-12-22 06:34:56

如果您正在运行VMWare Workstation,则还需要停止VmWare Workstation服务器端口443

If you are running VMWare Workstation , you need to stop the VmWare Workstation server - port 443 as well

草莓酥 2024-12-22 06:34:56

所以我在尝试启动apache服务时遇到了同样的问题,我想与您分享我的解决方案。
以下是有关可能使用端口 80 的服务或程序的一些说明:

  1. Skype:Skype 默认使用端口 80/443。您可以从工具->选项->更改此设置。
    高级 -> 连接并取消选中复选框“使用端口 80 和 443 进行其他传入连接”。
  2. IIS:IIS 默认使用端口 80,因此您需要将其关闭。可以使用下面两个命令
    网络停止w3svc
    net stop iisadmin
  3. SQL Server Reporting Service:您需要停止此服务,因为如果 IIS 未运行,它可能会占用端口 80。前往本地服务并停止它。

这些选项非常适合我,我可以毫无错误地启动 apache 服务。

另一个选项是从 httpd.conf 更改 apache 监听端口并设置另一个端口号。

希望这个解决方案可以帮助任何再次面临同样问题的人。

So I have faced the same problem when trying to start apache service and I would like to share my solutions with you.
Here is some notes about services or programs that may use port 80:

  1. Skype: skype uses port 80/443 by default. You can change this from tools->options->
    advanced->connections and uncheck the checkbox "use port 80 and 443 for addtional incoming connections".
  2. IIS: IIS uses port 80 be default so you need to shut down it. You can use the following two commands
    net stop w3svc
    net stop iisadmin
  3. SQL Server Reporting Service: You need to stop this service because it may take port 80 if IIS is not running. Go to local services and stop it.

These options work great with me and I can start apache service without errors.

The other option is to change apache listen port from httpd.conf and set another port number.

Hope this solution helps anyone who face the same problem again.

韶华倾负 2024-12-22 06:34:56

发生这种情况是因为系统中运行的其他一些程序正在使用 xampp/easy php 中的 apache 服务器用于 http 服务的默认端口 80。

某些程序(例如 Skype)通常使用端口 80。
所以找到这样的程序并将其删除...

要查找侦听端口 80 的程序,请参阅 80端口监听程序

This happens because some other programs running in your system is using the default port 80 used for http service by apache server in xampp/easy php.

Some programs like skype usually use port 80.
so find such program and remove it ...

For finding programs listening port 80 refer Port 80 listening programs

平生欢 2024-12-22 06:34:56

尝试从任务管理器 -> 服务中查找正在阻止该服务的 PID 上运行的服务。

如果这没有帮助,请转到任务管理器 -> 服务
转到窗口右下角的“服务”按钮并停止“Web 部署代理服务”。重试启动 Apache 。这可能会解决问题。

Try finding the Service running on the PID that is blocking the service from Task manager->Services

In case this isn't of help go to Task Manager->Services
Go to the Services button on bottom right of window and stop the Web Deployment Agent Service. Retry starting Apache . That might solve the problem.

GRAY°灰色天空 2024-12-22 06:34:56

此问题是因为端口 80 被其他应用程序使用。尝试重新配置端口。

This problem is because port 80 is used by some other application. Try to reconfigure port.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文