How to Change the Port Number for an Apache Server on WAMP
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
Log on to your Apache server computer with an administrator account.
Open the Start menu and click on the \"My Computer\" icon.
Navigate to the C:\\wamp\\Apache2\\conf directory on your server's main hard drive or the drive where WAMP has been previously installed.
Find the file labeled \"http.conf\" and double-click on it to open it in the Windows Notepad application.
Press the \"control\" and \"F\" keys at the same time to launch the search utility.
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.
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.