使用宝塔新增网站访问的时候报错
Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/perfecttools/web/../../vendor/autoload.php)
is not within the allowed path(s): (/www/wwwroot/perfecttools/web/:/tmp/:/proc/) in ...
解决方案:
宝塔后台->网站->设置->网站目录里 关闭防跨站攻击选项

本文介绍了解决宝塔面板在新增网站访问时出现的防跨站访问限制错误的方法。通过关闭宝塔后台网站设置中的防跨站攻击选项,可以有效避免因路径限制导致的require()函数错误。
2840

被折叠的 条评论
为什么被折叠?



