XAMPP

[XAMPP] apache start 오류 (Error: Apache shutdown unexpectedly.)

시애닝 2023. 8. 12. 18:40

▶ 오류 내용

XAMPP에서 Apache를 시작하려고 Start를 클릭하면 아래처럼 오류가 표시됩니다.


▶ 해결 방법

৹ 첫 번째 방법 - 포트 변경

1. 오른쪽의 "Config" 버튼을 클릭합니다.

 

2. "Service and Port Settings" 버튼을 클릭합니다.

 

3. Apache - Main Port 값을 80이 아닌 다른 숫자로 변경합니다.

* 8080이 아니어도 아무 숫자나 사용 중인 포트 번호와 겹치지 않는 숫자면 됩니다.

* 사용 중인 포트번호 확인 방법(windows) ▼

더보기
# 사용 중인 포트번호 전체 확인
> netstat -ano

# 포트번호 80과 관련된 리스트만 확인
> netstat -ano | findstr "80"

* 옵션 내용

-a : 모든 포트 표시

-n : "IP:포트" 구조로 표시

-o : PID (프로세스 고유 아이디) 표시

 

4. "Apache - Config - Apache (httpd.conf)"를 클릭합니다.

 

5. "Listen"을 찾아서 방금 전에 변경한 포트번호로 값을 변경합니다.

 

6. XAMPP를 종료했다가 연 후에 다시 시도합니다.

 


৹ 두 번째 방법 - DocumentRoot 확인

1. "Apache - Config - Apache (httpd.conf)"를 클릭합니다.

 

2. "DocumentRoot"를 찾아서 아래처럼 두 곳에 적혀있는 폴더가 실제 존재하는지, 경로가 다르지 않은지 확인합니다.

 

3. 수정했다면 XAMPP를 종료했다가 연 후에 다시 시도합니다.

 

 

 

 

 

- 문의와 피드백은 언제나 환영입니다 ( •̀ .̫ •́ )✧ -

 

 

 

 

 

* 참고용 오류 텍스트

더보기

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