[英]You don't have permission to access /project on this server
I have this problem: "You don't have permission to access /project on this server." 我有这个问题:“您无权访问此服务器上的/ project。” And, what makes me feel trouble is that, here in terminal:
而且,令我感到麻烦的是,在终端中:
sol@Sol-MacMini /Library/WebServer/Documents>sudo ln -s /User/sol/Documents/project/ ./project
sol@Sol-MacMini /Library/WebServer/Documents>sudo ln -s /Applications/web/ci/ ./ci
sol@Sol-MacMini /Library/WebServer/Documents>ls
CodeIgniter ci
PoweredByMacOSX.gif m-plan
PoweredByMacOSXLarge.gif project
But in my browser,I can't see the "project" when input "localhost". 但是在我的浏览器中,输入“ localhost”时看不到“项目”。 If input "localhost/ci",it works and it does not work when "localhost/project".
如果输入“ localhost / ci”,则有效,而在“ localhost / project”时,则无效。 I thought it maybe has something wrong with my apache setting.
我以为我的Apache设置可能有问题。
What can I do to solve this? 我该怎么解决?
Some more clarification: 一些澄清:
I have created a symbolic link "project" under apache's htdocs directory, which points to a "project" directory under my home. 我已经在apache的htdocs目录下创建了一个符号链接“项目”,该链接指向我家下的“项目”目录。 The permission of both the symbolic link and the directory should be fine, as shown below:
符号链接和目录的权限都应该很好,如下所示:
/Library/WebServer/Documents>ls -l /库/ WebServer /文档> ls -l
lrwxr-xr-x 1 root wheel 35 12 21 17:59 project -> /Users/sol/Documents/htdocs/project lrwxr-xr-x 1根轮35 12 21 17:59 project-> / Users / sol / Documents / htdocs / project
sol@Sol-MacMini ~/Documents/htdocs>ls -l sol @ Sol-MacMini〜/ Documents / htdocs> ls -l
drwxr-xr-x@ 15 sol admin 510 12 21 17:59 project drwxr-xr-x @ 15 sol admin 510 12 21 17:59项目
As you can see, it is quite weird that I get "Permission denied" error given the above file permissions set. 如您所见,鉴于上述文件权限集,我收到“权限被拒绝”错误是很奇怪的。
highlight the project folder in the apache directory. 突出显示apache目录中的项目文件夹。 Press command + i and make sure in permissions that everyone can read.
按命令+ i,并确保每个人都可以阅读其权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.