Connect with us

How To Change The XAMPP Server Port In Windows 10 | Apache Server Port

How To Change The XAMPP Server Port In Windows 10

Computer Science

How To Change The XAMPP Server Port In Windows 10 | Apache Server Port

(Last Updated On: October 18, 2021)

The XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends.

In this tutorial we will guide you step-by-step to How to change the XAMPP server port and fix the Apache port error.
  • I successfully installed XAMPP in Windows 10, but when I pressed the Start button in front of Apache on XAMPP Control Panel, I got errors like this.
How To Change The XAMPP Server Port In Windows 10 | Apache Server Port 1
  • When I traced the error, I got the information that the localhost’s default pot 80 is being used by some other application. IIS is also installed on my computer, so port: 80 was being used by IIS.

 

So follow the steps to fix a block port on XAMPP in Windows 10:

 

Step 1:

  • Open XAMPP Control Panel.
  • Click Config button of Apache Module.
  • Click Apache (httpd.conf).
How To Change The XAMPP Server Port In Windows 10 | Apache Server Port 2

 

Now look for following lines and replace with the changes:

  • Find —     Listen 80     —  Replace With  —   Listen 8080     —
  • Find —    ServerName localhost:80    —  Replace with  —     ServerName localhost:8080   —
How To Change The XAMPP Server Port In Windows 10 | Apache Server Port 3
  • Again click Config button of Apache Module.
  • Click Apache (httpd-ssl.conf).
How To Change The XAMPP Server Port In Windows 10 | Apache Server Port 4

 

Now look for following lines and replace with the changes:

  • Find —   Listen 443   — Replace With —   Listen 4433   —
  • Find —   <VirtualHost _default_:443>   — Replace With —   <VirtualHost _default_:4443>    —
How To Change The XAMPP Server Port In Windows 10 | Apache Server Port 5

 

Step 2:

  • Now Click Config button of Main Control Panel.
How To Change The XAMPP Server Port In Windows 10 | Apache Server Port 6
  • Click Service and Port Settings.
How To Change The XAMPP Server Port In Windows 10 | Apache Server Port 7
  • On Main Port, type 8080.
  • On SSL Port, type 4433.
How To Change The XAMPP Server Port In Windows 10 | Apache Server Port 8
  • Now Start the Apache Module.
How To Change The XAMPP Server Port In Windows 10 | Apache Server Port 9
  • Since you have changed the port no, so now you will run localhost like this http://localhost:8080/
  • To access your project, type the folder name like this http://localhost:8080/MyProjects/Test/

 

That’s it, you’re done. If you like this post then don’t forget to share with other people. Share your feedback in the comments section below.

 

Best Webhosting with discount

 

Meer Basit is the founder of Meer’s World. He’s been running the show since launching the blog back in 2018. By background he is a computer scientist. Primarily, he creates content around blogging (WordPress, Blogger, Tumblr), SEO, affiliate programs, earn-online, reviews, eCommerce, & technology. He has got years of professional experience in web programming, computer programming, databases, data warehousing, & transcription. In general, he likes traveling, gardening, watching movies, is a passionate cricketer, creative writer, and a GSD lover.

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

More in Computer Science

To Top