3 일 동안 인터넷을 검색하여 문제를 해결했지만 아무것도 작동하지 않습니다.아파치 마운틴 라이온이 작동하지 않습니다.
아파치가로드되고, 내 httpd.conf 파일은 현재 주석 처리되지 않은 PHP5 LoadModule 이외의 다른 기본값이며, 모든 파일의 권한은 적어도 읽기 허용됩니다.
Mountain Lion을 완전히 다시 설치하고 Time Machine으로 내 사용자 계정 만 복원했습니다. (그들은 기본적를 온으로) 여기
내 httpd.conf 파일의 몇 가지 중요한 부분입니다 :ServerRoot "/usr"
#Listen 12.34.56.78:80
Listen 80
User _www
Group _www
#ServerName www.example.com:80
DocumentRoot "/Library/WebServer/Documents"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/Library/WebServer/Documents">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
내 UserName.conf 파일 (James.conf) :
<Directory "/Users/James/Sites/">
Options Indexes MultiViews
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
</Directory>
이 가이드를 시도 작업을 시작하는 것이 내가
나는 또한 httpd.conf 파일에 오타를 만들었다 더미 가상 호스트에서 주석 및 HTTP : //osxdaily.com/2012/09/02/start-apache-web-server-mac-os-x/ – Mellson
야, 나를 따라갈 수없는 링크가 거의 없다. –
AllowOverride AuthConfig Limit를 AllowOverride All (James.conf의)으로 변경해보십시오. 또한 열려고하는 파일은 사이트라는 폴더의 홈 디렉터리에 있어야합니다. PHP라는 폴더에 index.php라는 폴더가 있다고 가정 해 보겠습니다. 여기에 액세스하려면 브라우저에서 http : //localhost/~James/PHP/index.php로 가십시오. 이 환경 설정 패널을 사용하면 서버를 켜고 끌 수 있습니다. http://clickontyler.com/blog/2012/02/web-sharing-mountain-lion/ – Mellson