Access forbidden!
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.
Error 403
localhost
Apache/2.4.25 (Unix) OpenSSL/1.0.2j PHP/5.6.30 mod_perl/2.0.8-dev Perl/v5.16.3
这是因为,Mac中有些文件夹是只对本机用户有读写权限,如果是服务器去访问这些文件夹,则会报forbid。
// 解决办法:
//打开
Applications/XAMPP/xamppfiles/etc/httpd.conf,
//搜索User/Group,
//修改下面的User和Group, User修改为mac的用户名, Group修改为staff
v2-b300afe3217ac40eed4ecdeb46750362_hd.png
这样,就解决了问题~
网友评论