博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
lamp 403
阅读量:7004 次
发布时间:2019-06-27

本文共 527 字,大约阅读时间需要 1 分钟。

装好Lamp,启动,除了默认站点外,添加的其他virtualhost以及phpmyadmin均无法访问: You don't have permission to access the requested object. It is either read-protected or not readable by the server.If you think this is a server error, please contact the webmaster. 看这样子是httpd的配置的问题了。仔细看了下lampp/etc/httpd.conf的配置,发现对/的访问权限都弄成了 Require all denied 如下所示:

<Directory />

 AllowOverride none
 Require all denied
</Directory>

 

于是修改之:

<Directory />

# AllowOverride none
AllowOverride All
# Require all denied
Require all granted
</Directory>

行了,问题解决。 奶奶的,给了这么个严格的默认权限。

转载地址:http://sfytl.baihongyu.com/

你可能感兴趣的文章