简体   繁体   English

XAMPP / Apache无法在端口81上启动

[英]XAMPP/Apache won't launch on port 81

I just installed the latest XAMPP and I changed httpd.conf so it listens on port 81 (because Skype listens on 80): 我刚刚安装了最新的XAMPP,并更改了httpd.conf因此它在端口81上侦听(因为Skype在80上侦听):

Listen 81

However when I use the XAMPP CP to launch Apache, it says: 但是,当我使用XAMPP CP启动Apache时,它说:

Apache started [Port 80] Apache启动[端口80]

and then fails. 然后失败。 If I stop Skype it says the same thing but doesn't fail and Apache listens on port 81, so my Apache config must be correct. 如果我停止Skype,它说的也是一样,但不会失败,Apache监听端口81,因此我的Apache配置必须正确。

Why is XAMPP still checking port 80 and how do I stop it? 为什么XAMPP仍在检查端口80,如何停止它? I am running Windows 64-bit. 我正在运行Windows 64位。 XAMPP is installed in C:\\xampp XAMPP安装在C:\\xampp

I got the solution from XAMPP support so I'm answering my own question: 我从XAMPP支持人员那里获得了解决方案,所以我在回答自己的问题:

The solution was to change the port number in the sample XAMPP.INI file provided, then copy it to the xampp root dir. 解决方案是更改提供的示例XAMPP.INI文件中的端口号,然后将其复制到xampp根目录。

There is another line further down in the .conf file that also needs changing. .conf文件中还有另一行需要更改。

ServerName localhost:80

Now start Apache and MySQL, browse to http://localhost:81 , and the contents of your htdocs folder should appear. 现在启动Apache和MySQL,浏览至http:// localhost:81 ,然后会出现htdocs文件夹的内容。

Regarding the message displayed in the xampp window, I would ignore it. 关于在xampp窗口中显示的消息,我将忽略它。 Mine displays '[Port 80]' regardless of which port I have set it to use. 无论我将其设置为使用哪个端口,Mine都会显示“ [端口80]”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM