You
have developed a system that is written using windows-apache-mysql-php. One day
you open the system, launches the wamp server and here you g , you are finding
that localhost is no longer responding and it becomes a nightmare for you to
figure it out why it is not working. The reason is you have installed some
other server like IIS, Glassfish or any other server that is by default
configured on port 80. With the installation of glassfish you may not encounter
the problem but when it is IIS, you are in trouble. As IIS is made to run
forever on system by default, port 80 is always in use and you cannot open
another socket connection on same port.
I
think problem is clear enough. Now let us proceed to rescue the thing that is
haunting you for weeks. Simple solution is to change the port number. There is
funny part associated with this. Once someone asked if he should format the computer.
Lol. You do not need to format your computer to solve just port related
problems. Just change the configuration file in the installation directory of
wamp and problem is solved.
Here
is the steps you need to follow:
- Go to <Installation directory>\wamp\bin\apache\apache2.2.22\conf .
- Open httpd.conf and
look for 80 by ctrl+F.
- Replace 80 by the port you want wamp to listen to. Now you are done. But wait. This is only half way done. Because when you launch wamp from tray icon it will open http://localhost/ in your default browser. But it is supposed to open http://localhost:<you new port>/ .
- Obviously you can always type http://localhost:<you new port>/ manually in your favourite browser but if this could have worked by clicking localhost in tray icon menu of wamp, wouldnot that be easier for you! Okay then keep reading to know how it is getting done.
- In <Installation directory>\wamp you will find wampmanager.tpl. Open it and search for localhost. Replace http://localhost/ by http://localhost:<your new port>/.
- Same thing you do with wampmanager.ini found in <Installation directory>\wamp.
- You are done. Restart wamp. And Launch your localhost wamp home page.







0 comments