【发布时间】:2012-09-12 23:13:06
【问题描述】:
今天我学习了一些关于如何在 Mountain Lion 上运行一切的教程。
我已经安装了网络共享并且开启了,我也开启了php(mac自带的,不知道更新了)。
所以我没有安装 MySQL 和 phpMyAdmin 就停在那里,因为 localhost 对我来说不能正常工作。
如果我输入
http://localhost/ - 我知道它有效!
如果我输入
http://localhost/~dvLden/ - 我的网站工作正常
但是,如果我像这样打开一个项目:
http://localhost/~dvLden/test
我得到了一些奇怪的东西......
有时我会收到错误消息(取决于项目) 禁止的 您无权访问此服务器上的 /~dvLden/test。
有时网站可以工作,但很多东西都坏了(路径不正确),即使路径完全正确。
关于为什么会发生这种情况的任何线索?如果您需要更多信息,请告诉我!
编辑 #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
【问题讨论】:
标签: macos apache unix localhost