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

后端 未结 17 1337
小鲜肉
小鲜肉 2020-12-12 14:58

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!

相关标签:
17条回答
  • 2020-12-12 15:21

    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.

    0 讨论(0)
  • 2020-12-12 15:23

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

    0 讨论(0)
  • 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/.

    0 讨论(0)
  • 2020-12-12 15:25

    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,

    0 讨论(0)
  • 2020-12-12 15:26

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

    0 讨论(0)
  • 2020-12-12 15:29

    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

    0 讨论(0)
提交回复
热议问题