Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to change Apache port number in Xampp

Tags:

port

apache

xampp

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.

like image 494
rahulserver Avatar asked Dec 02 '22 22:12

rahulserver


1 Answers

This is the link which helped me to change my port.

enter image description here

enter image description here

And this video too.

like image 94
enadun Avatar answered Dec 23 '22 08:12

enadun