Mac上安装xampp,无法获取到htdocs目录下的某些项目文

2020-01-13  本文已影响0人  学不会灬

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

v2-085da32a47327efed72455f2640e49c8_hd.png

这是因为,Mac中有些文件夹是只对本机用户有读写权限,如果是服务器去访问这些文件夹,则会报forbid。

// 解决办法:

//打开 
Applications/XAMPP/xamppfiles/etc/httpd.conf,

//搜索User/Group,

//修改下面的User和Group, User修改为mac的用户名, Group修改为staff
v2-b300afe3217ac40eed4ecdeb46750362_hd.png

这样,就解决了问题~

上一篇 下一篇

猜你喜欢

热点阅读