wordpress安装插件open_basedir restriction in effect错误解决方法

Update: 如果wordpress按照第三方来历不明的主题或者插件,提示open_basedir restriction in effect错误,一定得注意,该主题或者插件,很有可能有后门,包含恶意跨站攻击病毒。

wordpress下载的第三方插件,上传安装的时候,一直提示如下相关错误:

Warning: scandir(): open_basedir restriction in effect. File(/www/wwwroot) is not within the allowed path(s)

开始以为环境配置问题,调整了很久,换了不同服务器测试,也都是这个错误。

网上查询,原来只需要关闭宝塔面板中的“防跨站攻击”即可。

去掉下图中 防跨站攻击:

本文链接: https://www.168itw.com/wordpress/open-basedir-restriction-in-effect/
转载请注明转载自:168itw

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注