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

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.


How To Change The XAMPP Server Port In Windows 10 | Apache Server Port 0
 
  • 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
        

      Related Posts

      Comments