宝塔面板"Warning: is_readable(): open_basedir restriction in effect."问题

今天有朋友在使用LESEO插件的时候启用静态分离配置完毕参数后发现有报错。

Warning: is_readable(): open_basedir restriction in effect. File(/home/www/.aws/config) is not within the allowed path(s): (/www/wwwroot/bt.lezaiyun.com/:/tmp/) in /www/wwwroot/bt.lezaiyun.com/wp-content/plugins/leseo/inc/awss3/sdk/Aws/DefaultsMode/ConfigurationProvider.php on line 152

开始以为是他的配置环境的问题,于是我也搭建一个宝塔环境,发现也是一样的问题。

宝塔面板"Warning: is_readable(): open_basedir restriction in effect."问题

通过排查问题在这里。宝塔面板环境默认开启防跨站攻击选项,我们需要关闭那提示问题就没有。

投上你的一票

原创文章,转载请注明出处:https://www.itbulu.com/openbasedir-restriction.html

上一篇 2024年12月30日 15:50
下一篇 2025年3月26日 16:46

相关推荐