How to Change the Port Number for an Apache Server on WAMP

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.

By default, when running the WAMP application on an Apache server, the localhost port is set to port 80. However, you can adjust this setting on your server by editing the "http.conf" and entering a new port number. By changing the WAMP localhost port, you will be instructing your Apache server to send out communications from a different location.

Advertisement

Step 1

Log on to your Apache server computer with an administrator account.

Video of the Day

Step 2

Open the Start menu and click on the "My Computer" icon.

Step 3

Navigate to the C:\wamp\Apache2\conf directory on your server's main hard drive or the drive where WAMP has been previously installed.

Advertisement

Step 4

Find the file labeled "http.conf" and double-click on it to open it in the Windows Notepad application.

Step 5

Press the "control" and "F" keys at the same time to launch the search utility.

Advertisement

Advertisement

Step 6

Type "80" into the search field and hit "Find Next." You will now be taken to the part of the configuration file where the localhost port is set.

Step 7

Change "80" to the port of your choice and then save the "http.conf" file to update your server. You may need to restart your server in order for the new port to be recognized.

Video of the Day

Advertisement

Advertisement

references

Report an Issue

screenshot of the current page

Screenshot loading...