今天我跟着一些教程,讲述了如何在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