WordPress网站搬迁后出现file_exists(): open_basedir restriction in effect.

Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/eyangzhen.com/wp-content/plugins/imwpcache-dist//bootstrap/index.php) is not within the allowed path(s): (/www/wwwroot/www.eyangzhen.com/:/tmp/) in /www/wwwroot/www.eyangzhen.com/index.php on line 1

网站迁移到另外一台服务器后,打开网站出现以上报错。

解决办法

WordPress网站搬迁后出现file_exists(): open_basedir restriction in effect.

进入宝塔,找到对应网站后,把防跨站攻击这个勾选取消掉即可。

出现报错原因分析

打包的时候把防跨站的文件打包,然后覆盖掉新建的文件。

可能是该原因导致

声明:文中观点不代表本站立场。本文传送门:https://eyangzhen.com/1873.html

(0)
联系我们
联系我们
分享本页
返回顶部