Localhost opens IIS instead of wamp? How to change wamp server port?
You might have come across this situation several times: after installing IIS, you find yourself unable to use the WAMP server on localhost because the default port 80 is occupied by IIS7 or IIS 7.5.
In this scenario, the WAMP server icon turns yellow. Whether you use Google Chrome, Mozilla Firefox, Safari, Opera, or Internet Explorer, the problem remains the same.
Wamp Server is highly popular among PHP developers, web designers, and individuals who develop websites on local machines. It is lightweight, requiring minimal system resources, and functions seamlessly in all environments.
IIS is also an important module of Windows, enabling users to host files and run them locally. It is predominantly utilized with the .Net framework for developing ASP.NET projects. Furthermore, it is a robust server used in various professional environments where websites operate within a local area network.
So, the question is, if your system has an IIS server installed, how can you use the WAMP server when port 80 is acquired by IIS?
Would you consider uninstalling IIS?
The professional answer is an absolute 'No'. You don't need to uninstall IIS to work with the WAMP server or open PHPMyAdmin on localhost.
The simple solution is to change the WAMP server port from 80 to 8080 and use both servers simultaneously. And if you don't know how to change the WAMP server port to 8080, then you are in the right place. Here, I will show you a step-by-step procedure to change the WAMP server port. But before changing the WAMP server port, you may also apply the following techniques to resolve this issue.
Solution 1: Clear Cache and Cookie
Most of the time, simply clearing browser cookies or caches fixes this problem. Go to your browser settings, clear the browser's cached files and cookies, and then restart the WAMP server.
Solution 2: Disable 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 the 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 the port, wamp will not conflict with IIS and both servers 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 the wamp server index page there. Congratulations!!! You have done it successfully. Now you can use both servers simultaneously without conflicting them.