简体   繁体   English

您无权访问此服务器上的/ project

[英]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.

相关问题 您无权访问/在此服务器上 - Mac OS X Mojave上的Apache 2 - You don't have permission to access / on this server - Apache 2 on Mac OS X Mojave 获取:禁止 - 您无权访问此资源 - Getting: Forbidden - You don't have permission to access this resource 如何更改apache2 DocumentRoot(默认的雪豹安装),但没有得到“您无权访问/在此服务器上。” - How do I change apache2 DocumentRoot (default snow leopard install) and not get “You don't have permission to access / on this server.” 页面自动化:您没有权限 - Pages automation: You don’t have permission MacOS XAMPP Access Forbidden Error 403 - 您无权访问请求的目录 - MacOS XAMPP Access Forbidden Error 403 - You don't have permission to access the requested directory 无法删除“ tmp”,因为您没有访问权限 - “tmp” couldn't be removed because you don't have permission to access it 如何在 Mac OSX EACCES 上修复:权限被拒绝...您无权访问此文件 - How to fix on Mac OSX EACCES: permission denied...You don't have access to this file Wireshark - 您无权在该设备 mac 上进行捕获 - Wireshark - you don't have permission to capture on that device mac 您无权在Mac Mojave中保存文件 - You don't have permission to save file in Mac Mojave “您无权访问此资源。” 适用于 Mac OS 11 上 CGI-Executables/ 中的 perl 脚本 - Big Sur - "You don't have permission to access this resource." for perl scripts in CGI-Executables/ on Mac OS 11 - Big Sur
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM