require(): open_basedir restriction in effect. File(............) is not within the allowed path(s): (/......./public/:/tmp/:/proc/)
错误
https://lnmp.org/install.html 在使用lnmp一键安装后布置项目报如上错误
修改
cd /usr/local/nginx/conf/
vi fastcgi.conf
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/"; 此行删除即可正常运行