Computer Science
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.
- 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.
- 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:
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 —
- Again click Config button of Apache Module.
- Click Apache (httpd-ssl.conf).
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> —
Step 2:
- Now Click Config button of Main Control Panel.
- Click Service and Port Settings.
- On Main Port, type 8080.
- On SSL Port, type 4433.
- Now Start the Apache Module.
- 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/
Recommended Posts
- How To Install & Configure XAMPP On Windows 10 – Step By Step | For Beginners
- How To Install MAMP On Windows 10 Step By Step | How To Change The MAMP Server Ports
- How To Install WordPress On MAMP Server In Windows 10 – Step By Step | Install WordPress On Localhost
- How To Install EasyPHP Devserver On Windows 10 – Step By Step | Show Databases On phpMyAdmin In EasyPHP

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.
