Tweak.su

Типичный сайт типичного программиста

Follow me on GitHub

Разблокировка порта 80 в Windows 10

16 Jan 2016

После обновления на Windows 10 стал вредничать XAMPP и ругаться что не может запустить Apache:

11:20:40 [Apache] Status change detected: stopped

11:22:00 [Apache] Problem detected!

11:22:00 [Apache] Port 80 in use by “Unable to open process” with PID 4!

11:22:00 [Apache] Apache WILL NOT start without the configured ports free!

11:22:00 [Apache] You need to uninstall/disable/reconfigure the blocking application

11:22:00 [Apache] or reconfigure Apache and the Control Panel to listen on a different port

11:22:00 [Apache] Attempting to start Apache app…

11:22:00 [Apache] Status change detected: running

11:22:02 [Apache] Status change detected: stopped

11:22:02 [Apache] Error: Apache shutdown unexpectedly.

11:22:02 [Apache] This may be due to a blocked port, missing dependencies,

11:22:02 [Apache] improper privileges, a crash, or a shutdown by another method.

11:22:02 [Apache] Press the Logs button to view error logs and check

11:22:02 [Apache] the Windows Event Viewer for more clues

11:22:02 [Apache] If you need more help, copy and post this

11:22:02 [Apache] entire log window on the forums

Решение проблемы

Вычислил pid процесса, использующего 80 порт:

C:\Users\Андрей>Netstat -ao

Активные подключения

Имя Локальный адрес Внешний адрес Состояние PID

TCP 0.0.0.0:80 ПК:0 LISTENING 4

Нашел приложение с PID 4:

C:\Users\Андрей>tasklist | find “4”

System 4 Services 0 3 880 КБ

Как оказалось, порт блокируется компонентом Windows “Фильтрация запросов”. Его надо просто отключить:

  1. Панель управления -> Программы -> Включение или отключение компонентов Windows
  2. Службы IIS -> Службы Интернета -> Безопасность -> Фильтрация запросов
  3. Снимаем галочку и нажимаем Ok