宝塔部署时,出现“open_basedir restriction in effect”错误

发布日期 2024-01-04

错误信息:
Warning: require(): open_basedir restriction in effect.
Warning: require(XXXXXXXXXXX): failed to open stream: Operation not permitted in XXXX

解决方案:
更改宝塔网站配置:去掉勾选防跨站攻击(open_basedir);