Localhost Opens IIS Instead Of Wamp? How To Change Wamp Server Port?


You might have across several times in this situation when you are not able to use wamp server on localhost after installing IIS because default port 80 is acquired by IIS7 or IIS 7.5 and in this situation wamp server icon goes yellow. Whether you use any browser google chrome, Mozilla firefox, safari, opera, internet explorer; the problem remains same.

Wamp Server is very popular among the PHP developer, web designer and for those people who uses Dreamweaver for developing project. It is very lightweight, requires little system resources and works perfectly on all environment. IIS is an also important module of Windows that allows users to host file and run on localhost. It is mostly used with .Net framework to develop asp.net project. It is also a powerful server and used in various professional environment where website runs on local area network.

So, the question is if your system has IIS server installed then how you can use wamp server; where port 80 is acquired by IIS? Would you thinking about uninstalling IIS? The professional answer is absolutely No. You don’t need to uninstall IIS to work with wamp server or open phpmyadmin on localhost. The simple solution is; change wamp server port 80 to 8080 and use both server simultaneously. And If you don’t know how to change wamp server port to 8080 then you are absolutely on a right place. Here I will show you step by step procedure to change wamp server port. But before changing wamp server port you may also apply following techniques to resolve this issue.

Solution 1: Clear Cache and Cookie
Most of the times simply clearing browser cookie or cache, fix this problem. Go to browser settings and clear browsers cached files and cookies and restart wamp server.

Solution 2: Disable IIS.
Disable IIS in Vista and Windows 7:
Control Panel > Uninstall Programs > Turn Widows Features On or Off > uncheck Internet Information Services

Disable IIS in XP:
Control Panel > Add/Remove Programs > Add/Remove Windows Components > uncheck Internet Information Services (IIS)

Solution 3: Stop IIS services in Task Manager
Stopping IIS and MS SQL services in task manager also fix this problem and enable you to use wamp server as default.
To open task manager, right click on task bar and click on Start Task manager.
Click on Service Tab
Find and select IIS Admin and SQL Express or SQL Server services that show as Started
Right click on that and stop that services.


How to change wamp server port to 8080?
Changing port 80 to 8080 is the best way to get rid of this problem. By changing port, wamp will not conflict with IIS and both server will work perfectly.

Step 1: Launch Wamp Server and Left Click on it.
Step 2: Open Apache > httpd.conf in notepad
Step 3: press control + F and find Listen 80
Step 4: Change it to Listen 8080
Step 5: Save and Close httpd.conf file and restart wamp server.
Step 6: Go to the browser and open localhost:8080


You will see wamp server index page there. You have done successfully. Now you can use both servers simultaneously without conflicting them.