Diary of problems and solutions related to web programming, database development and related technologies and platforms.

WAMP: Changing the default port no of Apache

After running the WAMP server, if the page displays the error like following, then it is the time to change the default port of the server (80) which is being occupied by other services like IIS, Torrent clients, Skype etc.

Not Found


HTTP Error 404. The requested resource is not found.

So change the port on which Wamp listens:
  • Click on Wamp server -> Apache -> httpd.conf
  • Change Listen 80 to something else, eg: Listen 81
  • I would also change ServerName localhost:80 to ServerName localhost:81
If you've done this, and saved httpd.conf, you have to restart the Wamp server. Then use localhost:81 as your root url.
So the urls will then look like
localhost:81/phpmyadmin
localhost:81/your_directory

No comments :

Post a Comment