멍멍이네 블로그

원인 :

액세스 권한에 의해 숨겨진 소켓에 액세스를 시도했습니다. 에러 이후 httpd.conf파일에서 내 아이피:포트를 개방해준 후 apache를 start하니까 에러가 뜸.

 

에러 1. AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using -. Set the 'ServerName' directive globally to suppress this message
에러 2. (OS 10049)요청한 주소는 해당 컨텍스트에서 유효하지 않습니다.  : AH00072: make_sock: could not bind to address -

(ip같은건 가림)

 

해결 :

해결 1. AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using -. Set the 'ServerName' directive globally to suppress this message 

ㄴ 에 대한 에러는 httpd.conf파일에서 ServerName이 주석처리 돼있는데, 주석을 푼 후 자기 아이피를 적어주면 에러 사라짐. ( ex: #ServerName localhost -> ServerName 123.456.789.000 )

 

해결 2. (OS 10049)요청한 주소는 해당 컨텍스트에서 유효하지 않습니다.  : AH00072: make_sock: could not bind to address -

ㄴ 에 대한 에러는 httpd.conf파일에서 ServerName에 포트를 적어주니까 사라짐.

ex : ServerName ip:port -> ServerName 123.456.789.000:8080

      Listen port            -> Listen 8080

원인 : 

httpd.exe 파일에 

         #Order allow,deny
         #Allow from all


         Require all granted

위 내용을 밑 내용으로 바꾸어줬습니다(인터넷 참조. 버전업 되면서 바뀌었다고 함.)

https://stackoverflow.com/questions/10925528/invalid-command-order-perhaps-misspelled-or-defined-by-a-module-not-included

 

그랬더니 

에러 발견.

 

 

해결? : httpd.conf 파일에 Listen port 부분을 수정.(기본으로 80으로 설정됐습니다. 80으로 검색 후 찾으시면 되고, apache 포트로 개방하면 될 듯 합니다)