mac上的xampp出现Access forbidden!

时间:2021-04-15 12:49:42

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

即可运行了。


原文