4

I just downloaded Xampp server xampp-win32-1.8.2-0-VC9.zip file for windows and tried to start the apache server. But the server failed to start with the following message:

XAMPP now starts as a console application.

Instead of pressing Control-C in this console window, please use xampp_stop.exe
to stop XAMPP, because it lets XAMPP end any current transactions and cleanup
gracefully.

(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted.  : AH00072: make_sock: could not bind to address 0.0.0.0:
80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

So clearly the port number 80 is already occupied.

So I went to the apache/conf/httpd.conf file and found the line:

#Listen 12.34.56.78:80
Listen 80

And changed the second line above to

Listen 8010

So the server must now start at port number 8010.But its instead starting on https default port number 443 and again giving the same error:

XAMPP now starts as a console application.

Instead of pressing Control-C in this console window, please use xampp_stop.exe
to stop XAMPP, because it lets XAMPP end any current transactions and cleanup
gracefully.

(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted.  : AH00072: make_sock: could not bind to address 0.0.0.0:
443
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

So how should I make the server run at the port number of my choice and why is my approach not working. As far as I can remember, the approach used to work on earlier versions of xampp but is not working now.

4

5 回答 5

6

这是帮助我更改端口的链接。

在此处输入图像描述

在此处输入图像描述

还有这个视频

于 2014-01-14T10:43:33.900 回答
4

原来 Skype 阻止 XAMPP 运行 apache。只需关闭Skype,打开服务器,然后重新打开Skype。这为我解决了这个问题。

于 2014-03-13T06:50:44.110 回答
4

如果您使用的是 Xampp,请打开此文件httpd-ssl.conf并搜索此条目Listen 443,将其更改为,比如说,Listen 444

然后重启apache。

于 2015-08-31T07:13:15.243 回答
2

您需要将端口从https-ssl.conf. 从 xamp config 和 apache ( Httpd-ssl.conf) 的控制面板更改端口。

于 2013-10-02T15:51:42.960 回答
1

我运行 setup_xampp.bat 并使用 apache 的配置按钮从控制窗格中编辑了端口号。然后我找到了这一行Listen 80,并通过编辑这一行将端口号更改为 81。这为我解决了这个问题。

于 2013-10-16T10:09:06.730 回答