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

By Bennett Gavrish

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.

Things You'll Need

  • PC running Windows Server 2003 or later
  • WAMP Server 2.0 or later

Step 1

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

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.

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.

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.

References & Resources