[php] Apache를 80포트에서 사용할 수 없을 때

Grace Goh·2023년 3월 10일
0

PHP

목록 보기
6/19

# error msg

Port 80 in use by "Unable to open process" with PID 4!

여러 언어를 공부하다 보면 포트가 이미 점유된 경우가 많다.
다른 포트를 쓰기 위해서는

Apache > Config > Apache (httpd.conf)

> listen 부분을 찾아 80을 8088 등 임의의 숫자로 바꾸면 된다.

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

> 저장 > 닫기 > (패널에서 Apache) start

> 크롬에서 localhost:8088로 접속


참고 https://www.youtube.com/watch?v=I6fQrT25ek0

profile
Español, Inglés, Coreano y Python

0개의 댓글