首页 > 代码库 > mac上的xampp出现Access forbidden! You don’t have permission to access the requested object. It is either

mac上的xampp出现Access forbidden! You don’t have permission to access the requested object. It is either

一个Joomla!程序,之前是在win上的xampp上运行得非常好的,当我把它拿到mac下面的xampp上去运行的时候,发现有问题,没法运行,报以下的错误:

Access forbidden!  You don’t have permission to access the requested object. It is either read-protected or not readable by the server.

这时可以找到apache的httpd.conf文件,找出<Directory />

修改成如下:

<Directory />
    Options All
    AllowOverride All
    Order deny,allow
    Allow from all
</Directory>

如果还是不行,可以

chmod -R 777 /Applications/XAMPP/xamppfiles/htdocs

即可运行了。

mac上的xampp出现Access forbidden! You don’t have permission to access the requested object. It is either