2014-12-04 4 views
0

내 요세미티 컴퓨터에서 아파치를 실행하려고하는데 localhost에 액세스하려고하면 http://i.stack.imgur.com/ZzZzB.png이 표시됩니다. 아파치 설정 mac os yosemite

나는 아파치으로 configtest를 실행하고 내가 잘못 얻고 무엇 다음

Angus-Mac:mysql root# apachectl configtest AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using Angus-Mac.local. Set the 'ServerName' directive globally to suppress this message Syntax OK

있어? 어떤 아이디어?

+0

httpd.conf 및/etc/hosts 파일을 게시 할 수 있습니까? – liorsolomon

+0

http://pastebin.com/vpCi1ugs - httpd.conf http://pastebin.com/k2ZUuqx1 - hosts – Angus

+0

디렉토리에 대한 권한을 붙여 넣으시겠습니까? ls -l/라이브러리/WebServer/Documents. 또한 error_log를 붙여 넣으십시오. 감사! – liorsolomon

답변

1

ServerName의 주석을 풀고 도메인 이름을 변경하여 문제를 해결했습니다.

1

변화 해당 폴더에 대한 그룹 권한은

sudo chgrp -R _www /Library/WebServer/Documents (all web content is now group _www) 
chmod -R go-rwx /Library/WebServer/Documents (nobody other than owner can access web content) 
chmod -R g+rx /Library/WebServer/Documents (all web content is now readable/executable/enterable by _www) 

다음 아파치 를 다시 시작 _www하기는 httpd.conf 파일에 사용자가 웹 디렉토리

에 하나 내가 해결책을 발견 다른 것 같다 here

라인 212 (httpd.conf)에서 ServerName의 주석을 제거하고 도메인 www.example.com을 귀하의 도메인으로 변경하십시오. 아파치를 다시 시작

+0

필러 디렉토리가 없다고 말합니다. – Angus

+0

디렉토리 경로로 다시 실행하십시오. – liorsolomon

+0

지금은 사파리가 localhost에 연결할 수 없다고 말하면 금지 된 상태로 돌아갔습니다 – Angus