mac下xampp+thinkphp运行htdocs文件夹下所建项目index.php报错的解决方案

来源:互联网 发布:超级sql注入工具教程 编辑:程序博客网 时间:2024/06/06 12:37

localhost/project

localhost 就是自己电脑的ip地址
project创建的项目
输入localhost/project,会自动寻找project目录下的index.php文件

这里写图片描述

这是权限不够,解决办法:打开终端敲入以下信息:
1、cd /Applications/XAMPP/xamppfiles/htdocs
2、chmod -R 777 *

访问成功
这里写图片描述

mac下xampp运行thinkphp错误403解决方案

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.

这是权限不够,解决办法:打开终端敲入以下信息:
1、cd /Applications/XAMPP/xamppfiles/htdocs
2、chmod -R 777 *

原创粉丝点击