php Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/项目名/路径/文件.php) is not within the allowed pat 原因: 下载的项目包含隐藏文件.user.ini文件 在Mac本地未能及时发现user.ini 需在访达---》右上角 偏好设置---》高级设置 勾选显示所有文件扩展名 辛在使用mamp展开时发现该文件 直接删除便可运行 在线上参考:https://www.fujieace.com/php/open_basedir.html