[XAMPP] XAMPP Apache Problem detected 오류 해결

[XAMPP] XAMPP Apache Problem detected 오류 해결

728x90

웹프로그래밍을 수강하면서, 와이파이가 변경 될때마다 오류가 떴다.

오류 내용은 바로

오후 7:34:28 [Apache] Problem detected!

오후 7:34:28 [Apache] Port 80 in use by "Unable to open process" with PID 4!

오후 7:34:28 [Apache] Apache WILL NOT start without the configured ports free!

오후 7:34:28 [Apache] You need to uninstall/disable/reconfigure the blocking application

오후 7:34:28 [Apache] or reconfigure Apache and the Control Panel to listen on a different port

오후 7:34:28 [mysql] Problem detected!

오후 7:34:28 [mysql] Port 3306 in use by ""

오후 7:34:28 [mysql] MySQL WILL NOT start without the configured ports free!

오후 7:34:28 [mysql] You need to uninstall/disable/reconfigure the blocking application

오후 7:34:28 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port

대략 이런 오류이다.

항상 급하게 해결한다고 지웠다가 다시 깔았다.

하지만 다르게 해결할 수 있는 방법을 드디어 알아냈다!

Apache의 Config 선택 -> Apache (httpd.conf) 선택

그럼 보통 메모장이 하나 나오는데, 스크롤 내리다가

Listen부분이 보통 80으로 기본 설정 되어있는데, 8080으로 수정해준다. (아래의 사진 참고)

맨 아래 8080!

그다음 subline 등등에서 코딩을 하고, php 파일로 저장을 한뒤

만약 파일명이 5_1.php라면

localhost:8080/5_1.php 로 주소를 설정해서 확인한다.

localhost: 뒤에 8080을 붙이는 것이 중요! (처음에 교수님이 저렇게 수정해봐라고 했는데, 제대로 알아듣지 못하고 지웠다 깔고 별짓을 다 했었다.

다들 시간 낭비 하지 말고 행복한 코딩해요 ~^^

728x90

from http://heaven0713.tistory.com/57 by ccl(A) rewrite - 2021-10-12 20:00:11