본문 바로가기

IT공부/PHP관련

XAMPP Apache port error

XAMPP Apache port error

XAMPP 설치하고 아파치를 시작시켰는데 아래와 같이 에러가 난다.

 

Error: Apache shutdown unexpectedly.
오후 2:33:33  [Apache]  This may be due to a blocked port, missing dependencies, 
오후 2:33:33  [Apache]  improper privileges, a crash, or a shutdown by another method.
오후 2:33:33  [Apache]  Press the Logs button to view error logs and check
오후 2:33:33  [Apache]  the Windows Event Viewer for more clues
오후 2:33:33  [Apache]  If you need more help, copy and post this
오후 2:33:33  [Apache]  entire log window on the forums

 

2가지 해결 책이 있다.

 

1. 아파치 포트 변경

2. '80'이랑 '443' 포트쓰고 있는 프로세스 끄기

 

2번 방법을 알아본다.

 

WIN + R

실행창을 띄우고

 

CMD

 

netstat -ano

443포트를 쓰는 프로세스의 PID가 5196인걸 확인할 수 있다.

 

작업관리자를 실행한다.

 

아래와 같이 PID를 찾아서 마우스 우클릭 작업끝내기를 하면 된다.

그리고 XAMPP에서 다시 Apache를 시작하면 아래와 같이 정상적으로 실행되는 것을 확인할 수 있다.