How can I get XAMPP working on port 80 under Windows 10?

 By default, Windows 10 reserves port 80 for services like HTTP, which may prevent XAMPP from using that port. However, there are a few steps you can follow to get XAMPP working on port 80:


Stop any service that uses port 80:

Before starting XAMPP, make sure that there are no other services running on port 80. Some common services that use port 80 include Skype, IIS, and World Wide Web Publishing Service. You can stop these services in the Windows Services Manager or by disabling them in the settings.


Change the port number in the XAMPP configuration:

By default, XAMPP uses port 80 for Apache web server and port 3306 for MySQL database server. To change the Apache port number, follow these steps:


Open the XAMPP Control Panel and click on the "Config" button for Apache

Select "Apache (httpd.conf)" from the drop-down menu

Search for the line "Listen 80" and replace it with "Listen 8080" (or any other port number that's not in use)

Save the changes and close the editor

Configure Apache to use the new port number:

After changing the port number in the configuration file, you need to configure Apache to use the new port number. Follow these steps:

In the XAMPP Control Panel, click on the "Config" button for Apache again

Select "Apache (httpd.conf)" from the drop-down menu

Search for the line "ServerName localhost:80" and replace it with "ServerName localhost:8080" (or the new port number you selected in step 2)

Save the changes and close the editor

Start Apache in XAMPP:

After configuring the new port number, you can start Apache in XAMPP and verify that it's running on the new port. Open a web browser and enter "http://localhost:8080" (or the new port number you selected) in the address bar. If everything is set up correctly, you should see the XAMPP welcome page.

Note that running XAMPP on a non-standard port can cause issues with some web applications and frameworks that expect to find the web server on port 80. If you encounter any issues, you may need to modify the application configuration to use the new port number or configure a reverse proxy to forward requests from port 80 to the new port.

Previous Post Next Post