今天我跟着一些教程,講述瞭如何在Mountain Lion上開展一切工作。OSX Mountain Lion本地主機問題
我已經安裝了Web共享,它已啓用,我也啓用了PHP(一個自帶的Mac,我不知道更新它)。
所以我在那裏沒有安裝MySQL和phpMyAdmin,因爲localhost不適合我。
如果鍵入
http://localhost/
- 我得到它的工作原理!
如果鍵入
http://localhost/~dvLden/
- 我讓我的網站工作
但是,如果我打開,像這樣的項目:
http://localhost/~dvLden/test
我得到一些奇怪的事情......
有時我得到錯誤(取決於項目) 禁止 您無權訪問/〜dvLden/tes t在這臺服務器上。
有時候網站可以正常工作,但很多事情都會被破壞(不正確的路徑)甚至是路徑,路徑是完全正確的。
爲什麼會發生這種事情的任何線索?如果您需要更多信息,請告訴我!
編輯#1:一些更新...
[Thu Sep 20 16:34:58 2012] [crit] [client ::1] (13)Permission denied: /Users/dvLden/Sites/test/slider/images/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://localhost/~dvLden/test/index.html
[Thu Sep 20 16:46:45 2012] [crit] [client ::1] (13)Permission denied: /Users/dvLden/Sites/test2/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
那是獅子還是獅子服務器? – lilalinux
Mountain Lion 10.8.2 – dvLden