今天有朋友在使用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.cn/:/tmp/) in /www/wwwroot/bt.lezaiyun.cn/wp-content/plugins/leseo/inc/awss3/sdk/Aws/DefaultsMode/ConfigurationProvider.php on line 152
开始以为是他的配置环境的问题,于是我也搭建一个宝塔环境,发现也是一样的问题。
通过排查问题在这里。宝塔面板环境默认开启防跨站攻击选项,我们需要关闭那提示问题就没有。
本文出处:老蒋部落 » 宝塔面板"Warning: is_readable(): open_basedir restriction in effect."问题 | 欢迎分享( 公众号:老蒋朋友圈 )