600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > Apache2显示网站目录或文件没有权限访问 “You don‘t have permission to acce

Apache2显示网站目录或文件没有权限访问 “You don‘t have permission to acce

时间:2024-06-06 11:34:19

相关推荐

Apache2显示网站目录或文件没有权限访问 “You don‘t have permission to acce

1.Apache配置文件出现问题

在/etc/apache2/中修改apache配置文件(apache2.conf),将要访问的文件夹Require all 一项后面修改为granted。

重启apache后即可解决。

2.文件或目录权限出现问题

进入相应目录后在终端输入以下指令:

chmod -R 755 *

重启apache后即可解决。

Apache2显示网站目录或文件没有权限访问 “You don‘t have permission to access this resource.“解决办法

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。