简体   繁体   中英

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

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.

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:

    图片

  • 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).

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

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/ .

  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

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

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

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!!

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

您还可以从控制面板取消选中IIS服务,添加或删除用于Windows添加或删除组件的程序。

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

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!

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.

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.

左键单击wamp转到apache>选择http.config Listen [:: 0]:8080

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'.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM