php环境为lnmp一键安装,php7.2。项目代码上传后显示
Warning: require(): open_basedir restriction in effect. File is not within the allowed path(s): 等信息
百度解决方案
修改/usr/local/nginx/conf/fastcgi.conf
将fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/"; 此行注释,重启nginx即可。
如果再不生效,则将fastcgi_param PHP_ADMIN_VALUE "open_basedir=NULL"; 设置为NULL,重启nginx