LNMP安装Laravel无法访问根目录处理方法

FastCGI sent in stderr: "PHP message: PHP Warning: require(): open_basedir restriction in effect.

编辑nginx配置文件:fastcgi.conf

注释

#fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";

重启
lnmp restart

你可能感兴趣的:(LNMP安装Laravel无法访问根目录处理方法)