最新消息:XAMPP默认安装之后是很不安全的,我们只需要点击左方菜单的 "安全"选项,按照向导操作即可完成安全设置。

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

XAMPP教程 中文小张 1065浏览 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

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

解决办法:

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

搜索User/Group,

修改下面的User和Group, User修改为mac的用户名, Group修改为staff

文章来源:xampp中文组官网

转载请注明:XAMPP中文组官网 » Mac上安装xampp,无法获取到htdocs目录下的某些项目文件夹。

您必须 登录 才能发表评论!