简体   繁体   English

无法使用WAMP,IIS 7.5使用端口80

[英]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! 我试图在Windows 7上使用WAMP,我的WAMP在线,但是当我打开localhost时,我得到了IIS 7.5的欢迎页面,虽然我从我的PC上卸载了IIS 7.5!

Apache server test says that port 80 is used my Microsoft-HTTPAPI/2.0 Apache服务器测试表明端口80用于我的Microsoft-HTTPAPI / 2.0

MS Visual Studio 2010 was uninstalled a short while ago as well. 不久之前,MS Visual Studio 2010也被卸载了。

I had lot of problems with this error (Thanks to Microsoft -- Grrr!!) 我有很多这个错误的问题 (感谢Microsoft - Grrr !!)

Finally found the solution ..... I am sharing this solution 终于找到了解决方案.....我正在分享这个解决方案

There are couple of ways to stop IIS 7.5 有几种方法可以阻止IIS 7.5

  • Best one is: 最好的是:

    Open a CMD prompt (as Admin) and type this: 打开CMD提示符(作为管理员)并键入:

    iisreset /stop Here is a snapshot: iisreset / stop 这是一个快照:

    图片

  • Next option if you still cannot stop the IIS 7.5 如果仍然无法停止IIS 7.5,请使用下一个选项

    Try this video link . 试试这个视频链接

  • Final option is to change the port number as the last option httpd.conf 最后一个选项是将端口号更改为httpd.conf的最后一个选项

PS: Don't forget to restart the WAMP once fixing the errors PS:修复错误后不要忘记重启WAMP


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): 只需禁用并停止万维网发布服务 (这将永久关闭IIS) - - - (您需要使用从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. 默认情况下,WampServer安装到IIS已使用的端口80。 To set WampServer to use an open port, left click on the WampServer icon in the system tray and go to Apache > httpd.conf 要将WampServer设置为使用开放端口,请左键单击系统托盘中的WampServer图标,然后转到Apache> httpd.conf

Open the httpd.conf in Notepad. 在记事本中打开httpd.conf。 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. 按ctrl + f并搜索“Listen 80”,将此行更改为“Listen 8080”(您可以根据需要更改此端口),然后关闭并保存httpd.conf文件。

Open a web browser and enter "[];, this will open the WampServer configuration page where you can configure Apache, MySQL, and PHP. 打开Web浏览器并输入“[] ;,这将打开WampServer配置页面,您可以在其中配置Apache,MySQL和PHP。

and some times this problem may occur because of skype also use 80 as default port hope this will help 有时可能会出现这个问题因为skype也使用80作为默认端口希望这会有所帮助

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: 如果您正在使用Windows 10 ,并且该端口被Microsoft-IIS / 10.0占用,请更改httpd.conf第62行和第63

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: 并且,从以下位置更改第221行

ServerName localhost:80

To: 至:

ServerName localhost:8080

Now, your host will be available at http://localhost:8080/ . 现在,您的主机将在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. 转到“ Control Panel > Administrative Tools > Services或者只需在运行中键入services.msc以打开所有Windows服务的列表。
  2. Find World Wide Web Publishing Service and stop it. 查找World Wide Web Publishing Servicestop它。 (if you want to disable it permanently you can change its start up type from automatically to disabled ). (如果要永久禁用它,可以将其启动类型从automatically更改为disabled )。

That's All 就这样

This could also be an issue of port 80 being used by "Web Deployment Agent Service". 这也可能是“Web部署代理服务”使用的端口80的问题。 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. 重新启动wamp服务器后,转到服务并停止“ World Wide Web Publishing Service ”。 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. 例如,在httpd.conf文件中将Listen 80更改为Listen 81 Now try with http://localhost:81 and it will respond on port 81!! 现在尝试使用http://localhost:81 ,它将在端口81上响应!

After uninstalling IIS on Windows 7, I continued to have IIS Welcome page. 在Windows 7上卸载IIS后,我继续拥有IIS欢迎页面。 The solution was to clear the cache of my web browsers. 解决方案是清除我的Web浏览器的缓存。 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 左键单击wamp转到apache>选择http.config

change LISTEN:80 to what ever you want you can choose any value of 4 digit like 1311,8000,9999 etc 改变LISTEN:80到你想要的任何你可以选择4位数的值,如1311,8000,9999等

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. 我在一个月前在Windows 10上遇到了同样的问题。每当我尝试访问http:// localhost /它时,我就会进入IIS页面。 I tried removing the IIS feature from windows features. 我尝试从Windows功能中删除IIS功能。 Once I was sure it was gone, I tried running XAMPP, but it still did not work. 一旦我确定它已经消失,我尝试运行XAMPP,但它仍然无法正常工作。 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). 因此,从我正在使用的Web浏览器(Google Chrome)中删除了缓存。

To do so, I went to: 为此,我去了:

Chrome > Settings > Show Advanced Settings > Privacy > Clear browsing data > Clear Cached images and files. Chrome>设置>显示高级设置>隐私>清除浏览数据>清除缓存的图像和文件。

Its almost the same process for any web browsers. 对于任何Web浏览器,它几乎都是相同的过程。 Right after that, I was able to run XAMPP without any problem! 在那之后,我能够毫无问题地运行XAMPP!

Hope it helps! 希望能帮助到你!

I just installed WAMP 3 on Windows 10 and did not have Apache in the WampServer system tray options. 我刚刚在Windows 10上安装了WAMP 3 ,并且在WampServer系统托盘选项中没有Apache。

But the httpd.conf file is located here: 但是httpd.conf文件位于:

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

In that folder, open httpd.conf with a text editor. 在该文件夹中,使用文本编辑器打开httpd.conf Then go to line 62-63 and change 80 to 8080 like this: 然后转到第62-63行并将80更改为8080,如下所示:

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. 然后转到系统托盘中的WampServer图标并右键单击>退出,然后再次打开WampServer,它现在应变为绿色。

Now go to localhost:8080 to see your server config page. 现在转到localhost:8080查看您的服务器配置页面。

This happens to me once: I uninstalled the IIS, and the port 80 still was used. 这种情况发生在我身上:我卸载了IIS,端口80仍然被使用。 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. 好吧问题是我也安装了Sql Server 2012Report Service ,所以我停止了这项服务并解决了问题。

See Stop Or Uninstall IIS for running Wamp Server (Apache) on default port (:80) question for more details. 有关更多详细信息,请参阅停止或卸载IIS以在默认端口(:80)问题上运行Wamp Server(Apache)

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. 谷歌搜索“从端口80删除iis”目前在这里引领。 Instead of removing IIS, here are the steps to just stop IIS from listening on port 80 : 以下是阻止IIS侦听端口80的步骤,而不是删除IIS:

STEP 1: Open IIS Window. 第1步:打开IIS窗口。 You can do this by, simply hitting the 'Windows' key and typing in 'IIS' or 'Internet Information Services'. 您只需点击“Windows”键并输入“IIS”或“Internet信息服务”即可。 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. 第2步:在“连接”窗格上,单击默认值以展开它。 Usually (PC-NAME(PC-NAME\\user), where 'PC-NAME' is your PC name, and 'user' is the username. 通常(PC-NAME(PC-NAME \\ user),其中'PC-NAME'是您的PC名称,'user'是用户名。

STEP 3: Click 'Sites' and expand it. 第3步:单击“站点”并展开它。 Now select 'Default Web Site'. 现在选择“默认网站”。 On the 'Actions' pane, click 'Bindings' under the 'Edit Site'. 在“操作”窗格上,点击“修改网站”下的“绑定”。

STEP 4: Now a window named 'Site Binding Opens. 第4步:现在一个名为“站点绑定”的窗口打开。 Click 'http' and then click edit. 单击“http”,然后单击“编辑”。 Change the port to another number, say 8000 and click 'Ok'. 将端口更改为另一个数字,例如8000,然后单击“确定”。

remove iis server and run Apache OR run Apache in a different port 删除iis服务器并运行Apache或在另一个端口运行Apache

to remove iir here 这里删除iir

or you can change apache port by go to httpd.config and change port:80 to something else 或者您可以通过转到httpd.config并将端口:80更改为其他内容来更改apache端口

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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