v2-91889e0255321ce43bcb49cc6d57d342_r.jpg
报错:

[error] 1233#0: *5 FastCGI sent in stderr: "PHP message: PHP Warning:  require(): open_basedir restriction in effect. File(/home/wwwroot/test/thinkphp/start.php) is not within the allowed path(s): (/home/wwwroot/test/public/:/tmp/:/proc/) in /home/wwwroot/test/public/index.php on line 17PHP message: PHP Warning: 

解决:
1.删除项目根目录下的.user.ini,这个.user.ini可能是lnmp一键安装包配置项目的时候生成的,项目本身没有这个
2.将 /usr/local/nginx/conf/fastcgi.conf 里面的fastcgi_param PHP_ADMIN_VALUE "open_basedir=/:/tmp/:/proc/"行注释,需要重启nginx php-fpm。

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code