Unable to change Apache port number in Xampp

I just downloaded the Xampp xampp-win32-1.8.2-0-VC9.zip file for Windows and tried to start the Apache server, but the server could not 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 

Thus, port 80 is already taken.

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, now the server should start with port number 8010. But instead, it starts with the default port number 443 https and again gives 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 do I get the server to work with the port number of my choice and why my approach does not work. As far as I remember, the approach used to work with earlier versions of xampp now does not work.

+4
source share
5 answers

I ran setup_xampp.bat and edited the port number from the control panels using the apache configuration button. Then I found this line Listen 80 and changed the port number to 81 by editing this line. This solved the problem for me.

+1
source

This is the link that helped me change the port.

enter image description here

enter image description here

And this video too.

+6
source

It turns out that Skype is blocking XAMPP from starting apache. Just close skype, open the server and start skype again. This fixed the problem for me.

+4
source

You need to change the port from https-ssl.conf . From the xamp config and apache control panel ( Httpd-ssl.conf ) change the port.

+2
source

If you use Xampp, open this httpd-ssl.conf file and search for this entry Listen 443 , change it to, say Listen 444

Then restart apache.

+2
source

Source: https://habr.com/ru/post/1493806/


All Articles