版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33636325/article/details/83417890
php报错is_dir():open_basedir restriction in effect. File(.log) is not within the allowed path(s)
这种情况为open_basedir限制了PHP可以操作的文件目录,开发环境不考虑安全问题的话,如果需要操作这些文件,解决方法可以是:
在LNMP环境下,
1.直接修改Nginx的配置文件 fastcgi.conf里的PHP_ADMIN_VALUE open_basedir;
2.加上你想要操作的目录或者直接注掉此行;
3.重启nginx生效。