403 Forbidden 您无权访问此服务器上的/folder-name/ [英] 403 Forbidden You don't have permission to access /folder-name/ on this server

查看:48
本文介绍了403 Forbidden 您无权访问此服务器上的/folder-name/的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找问题的答案,但找不到任何可以解决我的问题的答案.

I was looking for an answer to my problem, but I could'nt find any answer which solves my case.

问题是我无法访问 var/www/文件夹中的应用程序文件夹.当我转到 localhost/时,我收到消息说我的服务器正在运行并且我也可以访问 phpmyadmin.但是当我转到任何本地主机/文件夹名称时,我收到 403 错误:

The problem is that I can't access the app folders in my var/www/ folder. When I go to localhost/ i get the message that my server is running and I have access to phpmyadmin too. But when I go to any localhost/folder-name i get the 403 error:

禁止

您无权访问此服务器上的/folder-name/.

You don't have permission to access /folder-name/ on this server.

Apache/2.2.22 (Ubuntu) 服务器在本地主机端口 80

Apache/2.2.22 (Ubuntu) Server at localhost Port 80

我该如何解决?顺便说一句,我使用的是 Ubuntu 13.04,感谢您的回答.:)

How can I solve it? Btw I'm using Ubuntu 13.04, and thanks for your answers. :)

推荐答案

解决了问题:

sudo chown -R $USER:$USER /var/www/folder-name

sudo chmod -R 755 /var/www

授予权限

这篇关于403 Forbidden 您无权访问此服务器上的/folder-name/的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆