Breadcrumbs

Home Technical Help How to change the XAMPP server port number
How to change the XAMPP server port number PDF Print E-mail
Written by Administrator   

Follow the instructions below to change the port number for Apache server

 

1. Stop the XAMPP server, if it is running already.

2. Open the file [XAMPP Installation Folder]/apache/conf/httpd.conf.

3. Now search for the string "Listen 80" (I’m assuming that your XAMPP was using the port 80. Otherwise, just search for the string “Listen”).       This is the port number which XAMPP uses. Change this 80 to any other number such as 8080.

4. Then search for the string “ServerName” and update the port number there also. If there is one.

5. Save and re-start XAMPP server from the XAMPP Control Panel.

 

* It is always a good idea to back up httpd.conf file before you make any changes and save them. Just open the httpd.conf file in a text editor like notepad and save as a new file such as httpd-original.conf

 

 

*To access the Apache on localhost now type in http://localhost:8080  <-the new port number you just changed