SERVER
터미널 오류! httpd: Could not reliably determine the server's fully qualified domain name, using {userName} Set the 'ServerName' directive globally to suppress this message
나나나나나나나ㅏ나난ㄴ나ㅏ나나
2022. 9. 2. 11:43
728x90
brew에서 지원하는 php-switcher를 사용해서 편하게 Php 버전관리를 하려는 큰 꿈을 가지고있는데, 계속 오류가 발생했다...
httpd: Could not reliably determine the server's fully qualified domain name, using {userName}.local. Set the 'ServerName' directive globally to suppress this message
에러는 대충 이러한데 열심히 구글링을 해보니 apache설정에 servername이 잘못된거라는데
나는 apache도 없는데...?

하고 헐... 이러고있는 와중 누군가가 이것도했는데 오류가 나더라... 라는 글에서 단서를 얻어서 발견한건!!
바로 httpd/httpd.conf 여기!
여기에 server name을 설정해주면 되는거였다!
파일이 너무 기니 단어 검색으로 타고 들어가면 주석처리되어있는 우리의 문제덩어리 ServerName을 찾을 수있다
여기를 주석해제하고 localhost로 변경해주면 끗!!
그럼 해결완료!
혹시 php-switcher가 뭔지 궁금한사람은 내가 참고한 블로그는
728x90