Fix XAMPP Apache Not Starting Port 80 In Use - Apache Error Fix
The most common problem for the XAMPP Apache server not starting is because the default port no 80 may already be in use by another program like Skype, Teamviewer, etc. The following message appears when we start the Apache server from XAMPP which says the Port 80 is in use by another program.
Soin this post, we learn how to shift port no from 80 to another number to start the Apache server
Change Default Port 80,443 of XAMPP Apache Server
So, the best solution is to reconfigure the XAMPP Apache server to listen and use different port numbers to start it.
Let’s start
1) In the First step, you need to open the “Apache(httpd.conf)” file and configure it to use/listen on a new port no.
To open the “httpd.conf” file, click the “Config” button
2) Within the httpd.conf file search for “80”. You’ll find two rows which like;
#Listen 12.34.56.78:80
Listen 80
Change the port no to a port no. of your choice (from “8080” Or “1234” it depends on you) like below
#Listen 12.34.56.78:8080
Listen 8080
3) In the next step, find “ServerName localhost:80” in the same file and set it in the following manner as you have done already.
ServerName localhost:8080
4) After this save and close the “httpd.conf” file.
5) Now again click the Apache config button again and open the “Apache(httpd-ssl.conf)” file.
6) In the “httpd-ssl.conf:” file, look for “443”. You may find:
Listen 443
Here you can change it according to your choice. Like this:
Listen 4343
7) In the same file “httpd-ssl.conf” find another line that says, “<VirtualHost _default_:443>”. Now change this to your new port no like.
<VirtualHost _default_:4343>
8) Again in the same file “httpd-ssl.conf” you can find another line defining the port no “ServerName”. You find something like:
“ServerName www.example.com:443” or “ServerName localhost:443”
Here change this ServerName to your new port no like.
“ServerName www.example.com:4343” or “ServerName localhost:4343”
9) Save and close the “httpd-ssl.conf” file.
10) Finally, your setting is done go to your XAMPP control panel and start the Apache server.
"Thanks For Visiting Our Website"
0 Comments