Can't use WAMP , port 80 is used by IIS 7.5
Asked Answered
H

17

54

I am trying to use WAMP on Windows 7, my WAMP is online, but when I open localhost I get the welcome page of IIS 7.5, although I have uninstalled IIS 7.5 from my PC!

Apache server test says that port 80 is used my Microsoft-HTTPAPI/2.0

MS Visual Studio 2010 was uninstalled a short while ago as well.

Hawley answered 8/3, 2012 at 16:56 Comment(4)
Are you sure you didn't just uninstall IIS Express and leave the regular IIS installed?Kabob
@JoachimIsaksson i think i only uninstalled IIS Express , how can i uninstall the regular IIS ?Hawley
In "Computer", click "Uninstall or change a program", click "Turn Windows features on or off" and uncheck the "Internet Information Services" checkbox. When you click "Ok" it should remove itself.Kabob
Change IIS Port : #19312636Cislunar
V
37

By default WampServer is installed to port 80 which is already used by IIS. To set WampServer to use an open port, left click on the WampServer icon in the system tray and go to Apache > httpd.conf

Open the httpd.conf in Notepad. press ctrl+f and search for "Listen 80", change this line to "Listen 8080" (u can change this port as what you want), and then close and save the httpd.conf file.

Open a web browser and enter "[];, this will open the WampServer configuration page where you can configure Apache, MySQL, and PHP.

and some times this problem may occur because of skype also use 80 as default port hope this will help

Vive answered 8/3, 2012 at 17:7 Comment(8)
Hi, I was trying to follow this solution but entering any combination of "[];, "[]; [];, etc. didn't bring me to any page. What am I doing wrong? Thank you!Umbra
Rajika's fix worked for me (changing Listen 80 to Listen 8080 in httpd.conf ...but only after I used "Put Online" in the WAMP icon popup (otherwise I got a "you don't have permission..." error). Note I'm running IIS 7.0 (which uses port 80) on Windows 7. I do some local ASP stuff as well, so I don't want to shut down IIS. I need both IIS and WAMP, this was the solution.Napolitano
I put it online and finally wamp is green, the problem is that port 81 is forbidden.Koonce
I have changed to 8011 in http.config, then UNINSTALLED IIS, then changed back to 80 and now works.Newton
"PS: Don't forget to restart the WAMP once fixing the errors", after change port to 8080, I exit "AestanTrayMenu" which is WAMP's process name and restart it and success become greenMencher
This isn't really a direct answer to the problem. IIS takes over port 80 even when you disable it. Saying how to prevent IIS from reserving that port and allowing your prefered webserver to listen on port 80 would be a much better answer.Keble
I got WAMP to work using the other answer that Devrath provided. I wanted to find a true solution to the problem that meant having WAMP work with its defaults, and I wanted no other web services running, so I disabled IIS which I had never really setup, configure, or started on Windows 10 Professional anyway..Asparagus
Listen 80 was not there in my httpd.conf i changed Listen 0.0.0.0:80 and Listen [::0]:80 and ServerName localhost:80 . all there 80 to 8080 and worked for me.Tammietammuz
D
136

I had lot of problems with this error (Thanks to Microsoft -- Grrr!!)

Finally found the solution ..... I am sharing this solution

There are couple of ways to stop IIS 7.5

  • Best one is:

    Open a CMD prompt (as Admin) and type this:

    iisreset /stop Here is a snapshot:

    Image

  • Next option if you still cannot stop the IIS 7.5

    Try this video link.

  • Final option is to change the port number as the last option httpd.conf

PS: Don't forget to restart the WAMP once fixing the errors


You can also

Just disable and stop the World Wide Web Publishing Service (This shuts down IIS forever) - - -(You need to use Run from the starting point in windows):

sc config w3svc start= disabled
net stop w3svc

If you don't want it disabled, but manual instead, replace disabled by demand (don't remove space).

Danaus answered 21/6, 2013 at 5:55 Comment(2)
This is really the best answer +1. Stopping the IIS (either temporary or permanently) should be prior and changing the apache port should be the final (not the best) option.Sarawak
Stopped IIS temporarily with this solution. But the second command doesn't execute but displays details of the command itself [Description, Usage, Options). Anyways thanks.Mashhad
V
37

By default WampServer is installed to port 80 which is already used by IIS. To set WampServer to use an open port, left click on the WampServer icon in the system tray and go to Apache > httpd.conf

Open the httpd.conf in Notepad. press ctrl+f and search for "Listen 80", change this line to "Listen 8080" (u can change this port as what you want), and then close and save the httpd.conf file.

Open a web browser and enter "[];, this will open the WampServer configuration page where you can configure Apache, MySQL, and PHP.

and some times this problem may occur because of skype also use 80 as default port hope this will help

Vive answered 8/3, 2012 at 17:7 Comment(8)
Hi, I was trying to follow this solution but entering any combination of "[];, "[]; [];, etc. didn't bring me to any page. What am I doing wrong? Thank you!Umbra
Rajika's fix worked for me (changing Listen 80 to Listen 8080 in httpd.conf ...but only after I used "Put Online" in the WAMP icon popup (otherwise I got a "you don't have permission..." error). Note I'm running IIS 7.0 (which uses port 80) on Windows 7. I do some local ASP stuff as well, so I don't want to shut down IIS. I need both IIS and WAMP, this was the solution.Napolitano
I put it online and finally wamp is green, the problem is that port 81 is forbidden.Koonce
I have changed to 8011 in http.config, then UNINSTALLED IIS, then changed back to 80 and now works.Newton
"PS: Don't forget to restart the WAMP once fixing the errors", after change port to 8080, I exit "AestanTrayMenu" which is WAMP's process name and restart it and success become greenMencher
This isn't really a direct answer to the problem. IIS takes over port 80 even when you disable it. Saying how to prevent IIS from reserving that port and allowing your prefered webserver to listen on port 80 would be a much better answer.Keble
I got WAMP to work using the other answer that Devrath provided. I wanted to find a true solution to the problem that meant having WAMP work with its defaults, and I wanted no other web services running, so I disabled IIS which I had never really setup, configure, or started on Windows 10 Professional anyway..Asparagus
Listen 80 was not there in my httpd.conf i changed Listen 0.0.0.0:80 and Listen [::0]:80 and ServerName localhost:80 . all there 80 to 8080 and worked for me.Tammietammuz
H
17

If you're using Windows 10, as I am, and the port is occupied by Microsoft-IIS/10.0, change the lines 62 and 63, of the httpd.conf, from:

Listen 0.0.0.0:80
Listen [::0]:80

To:

Listen 0.0.0.0:8080
Listen [::0]:8080

As the people here suggested.

And also, change the line 221, from:

ServerName localhost:80

To:

ServerName localhost:8080

Now, your host will be available at http://localhost:8080/.

Harmful answered 5/11, 2015 at 18:42 Comment(0)
S
12
  1. Go to Control Panel > Administrative Tools > Services or simply type services.msc in run to open a list of all windows services.
  2. Find World Wide Web Publishing Service and stop it. (if you want to disable it permanently you can change its start up type from automatically to disabled).

That's All

Sarawak answered 30/5, 2015 at 12:10 Comment(1)
+1. This is what the bottom part of @Devrath's answer does, just in a nicer way. No need to mess around with ports or config files or anything else - the problem is the "hidden" IIS bundled inside the World Wide Web Publishing Service.Metaphrast
L
6

This could also be an issue of port 80 being used by "Web Deployment Agent Service". you can stop it from administrative tools->services and free up that port. as shown here

Leontine answered 13/11, 2013 at 7:22 Comment(0)
D
6

goto services and stop the "World Wide Web Publishing Service" after restart the wamp server. after that start the "World Wide Web Publishing Service"

Davedaveda answered 12/2, 2016 at 6:10 Comment(0)
J
5

Yes, you can just change the port to to any number. For instance change Listen 80 to Listen 81 in the httpd.conf file. Now try with http://localhost:81 and it will respond on port 81!!

Julijulia answered 16/9, 2012 at 4:38 Comment(1)
This has helped me partially however on the homepage localhost:81 i cannot see any of my php files that are present under C://wamp/www/Php_Files/demo.php.Also when i try to run my php file it gives me error :The requested URL /Php_Files/demo.php was not found on this server.Can some body help me on this?Also i have installed wampserver on port 81 since skype has taken port 80.Piapiacenza
S
3

After uninstalling IIS on Windows 7, I continued to have IIS Welcome page. The solution was to clear the cache of my web browsers. It works fine now. I didn't change anything else. Sorry for my english, if it is not perfect.

Regards

Seifert answered 27/8, 2013 at 17:48 Comment(0)
V
2

You can also uncheck the IIS services from control panel add or remove programs going for windows add or remove components.

Volcanic answered 27/8, 2013 at 6:5 Comment(0)
K
2

Left Click on wamp go to apache> select http.config

change LISTEN:80 to what ever you want you can choose any value of 4 digit like 1311,8000,9999 etc

Kristlekristo answered 5/3, 2014 at 6:35 Comment(0)
F
2

I had the same problem a month ago on Windows 10. Whenever I tried to access http://localhost/ it led me to the IIS page. I tried removing the IIS feature from windows features. Once I was sure it was gone, I tried running XAMPP, but it still did not work. I did not want to mess with the configuration files. But from this, I was quite sure it had something to do with my web browser. So, deleted the cache from the web browser I was using (Google Chrome).

To do so, I went to:

Chrome > Settings > Show Advanced Settings > Privacy > Clear browsing data > Clear Cached images and files.

Its almost the same process for any web browsers. Right after that, I was able to run XAMPP without any problem!

Hope it helps!

Finance answered 25/4, 2016 at 1:42 Comment(0)
B
1

I just installed WAMP 3 on Windows 10 and did not have Apache in the WampServer system tray options.

But the httpd.conf file is located here:

C:\wamp64\bin\apache\apache2.4.17\conf\

In that folder, open httpd.conf with a text editor. Then go to line 62-63 and change 80 to 8080 like this:

Listen 0.0.0.0:8080
Listen [::0]:8080

Then go to the WampServer icon in the system tray and right-click > Exit, then Open WampServer again, and it should now turn green.

Now go to localhost:8080 to see your server config page.

Bugaboo answered 9/4, 2016 at 18:47 Comment(0)
B
1

Google search of "remove iis from port 80" leads here currently. Instead of removing IIS, here are the steps to just stop IIS from listening on port 80:

STEP 1: Open IIS Window. You can do this by, simply hitting the ‘Windows’ key and typing in ‘IIS’ or ‘Internet Information Services’. The result will be shown up there. Click it, you will get the window opened for you.

STEP 2: On the ‘Connections’ pane, click the default one to expand it. Usually (PC-NAME(PC-NAME\user), where ‘PC-NAME’ is your PC name, and ‘user’ is the username.

STEP 3: Click ‘Sites’ and expand it. Now select ‘Default Web Site’. On the ‘Actions’ pane, click ‘Bindings’ under the ‘Edit Site’.

STEP 4: Now a window named ‘Site Binding Opens. Click ‘http’ and then click edit. Change the port to another number, say 8000 and click ‘Ok’.

Britneybritni answered 19/1, 2019 at 10:35 Comment(0)
T
0

remove iis server and run Apache OR run Apache in a different port

to remove iir here

or you can change apache port by go to httpd.config and change port:80 to something else

Truthvalue answered 20/3, 2014 at 2:51 Comment(1)
Welcome to Stack Overflow. Although I am sure that you have the best intentions to help, a recommendation to replace the whole technology stack cannot be reasonably considered an answer to a question. Good luck with the site!Gorges
V
0

This happens to me once: I uninstalled the IIS, and the port 80 still was used. Well the problem was that also I had the Report Service of the Sql Server 2012 installed, so I stopped that service and the problems solves.

See Stop Or Uninstall IIS for running Wamp Server (Apache) on default port (:80) question for more details.

Hope this helps some body, as it help to me.

Vaulting answered 20/9, 2014 at 4:16 Comment(0)
N
0

Left Click on wamp go to apache> select http.config Listen [::0]:8080

Naxos answered 20/9, 2015 at 17:37 Comment(0)
P
0

I don't recommend changing apaches port itself, because it will need you remember changed port. Its also headache to tell your co-developers about port change.

Go to windows features(By searching turn on or off windows features) -> Find Internet information services(IIS) and uncheck if it checked. Please make a note when you disable it FTP server/ client will not work.(incase you are using it, change httpd.conf as giovannipds 's answer) -> If still port is not free, then change skype port through skype settings.

thanks, enter image description here

Pinnatifid answered 23/9, 2019 at 12:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.