lnmp环境运行thinkphp5 报错open_basedir restriction in effect

打开你站点的配置文件

比如 www.shiqidu.com.conf

找到折行

fastcgi_param  PHP_VALUE  open_basedir=$document_root:/tmp/:/proc/;    

改为

fastcgi_param  PHP_VALUE open_basedir=[你的项目目录public的上级]/:/tmp/:/proc/;