APACHE needs port 80 - MAMP

爷,独闯天下 提交于 2020-01-12 09:08:25

问题


I want to run MAMP on my Windows 8.1 pc, but when I start the servers, it says:

'APACHE' needs open port '80' which is already being used by another 
service or application. Please reconfigure 'APACHE' to use free port.

Changing the port to something else doesn't help.


回答1:


when you have this problem just turn off Skype because Skype use port 80




回答2:


I used kampageddon's answer and it worked. Just follow the following steps:

  1. Run MAMP
  2. Click Preferences
  3. On Preference window click Ports
  4. While on Ports change Apache & Nginx Port to 8080.
  5. click ok
  6. Start Servers.



回答3:


Start windows command line and then run netstat -aon | findstr :80 You will see line with process that is using port 80




回答4:


I also found this post - https://superuser.com/questions/960023/port-80-already-in-use-after-windows-10-upgrade - suggesting disabling the IIS service, which worked perfectly for me




回答5:


You can change MAMP ports in Preferences -> ports, like a screenshot below




回答6:


Hey On Windows 10 I Ran into the same issue.. I found a way that is a guarantee fix... Go into controlpanel -> system security -> windows firewall -> on the left pane there is advanced settings.. click that. -> then add new inbound rule (on the left pane click inbound... then new rule on the right pane.) -> then follow the wizard as program and select mamp from C:/MAMP I believe. Then you are Golden!! Hope this helps all those out there with the new windows 10. Hypertextie




回答7:


If you arrived here because you just installed MAMP on a Windows OS (7~10), then Microsoft IIS is the most likely culprit hanging on to port 80.

You can confirm that with the CLI netstat advice by Sergio below and should you find via netstat that a listening service has a process id that maps to NT Kernal & System (ntoskrnl.exe -> cross check via details tab in task manager) then the culprit is IIS.

To Turn off IIS;

Start menu -> Control Panel -> Programs & Features -> Turn Windows Features On or Off -> De-select 'Internet Information Services'.

If you know why IIS is running then you will likely know the application that specifically needs it and you can turn back on when need (take note of the selection chain when turning off) -- otherwise it's unlikely you need IIS on.




回答8:


I had the same problem with recent windows update. Closing skype did the trick.




回答9:


IN CASE YOU ALREADY TURNED SKYPE OFF AND THE ERROR STILL APPEARS, just try stopping the server and closing MAMP, then go to MAMP\db\mysql and delete the following files:

mysql-bin.index

ib_logfile0

ib_logfile1 files

The MySQL Server should now connect succesfully with the port 80!




回答10:


Thru some web searches, I discovered that other windows services are know to be using Port 80. In Windows Search (via Windows Start), type 'services', stop one of these services below en test again till it works. Do not forget to restart it later !

  • SQL Server Reporting Services
  • Web Deployment Agent Service
  • BranchCache
  • Sync Share Service
  • World Wide Web Publishing Service
  • Internet Information Server


来源:https://stackoverflow.com/questions/30415201/apache-needs-port-80-mamp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!