求助 LNMP1.6 laravel 无法跨目录访问。项目跑步起来
这是日志里的报错信息2019/08/06 14:52:27 31014#0: *17 FastCGI sent in stderr: "PHP message: PHP Warning:require(): open_basedir restriction in effect. File(/home/wwwroot/cypay/bootstrap/autoload.php) is not within the allowed path(s): (/home/wwwroot/cypay/public/:/tmp/:/proc/) in /home/wwwroot/cypay/public/index.php on line 21
PHP message: PHP Warning:require(/home/wwwroot/cypay/bootstrap/autoload.php): failed to open stream: Operation not permitted in /home/wwwroot/cypay/public/index.php on line 21
PHP message: PHP Fatal error:require(): Failed opening required '/home/wwwroot/cypay/public/../bootstrap/autoload.php' (include_path='.:/usr/local/php/lib/php') in /home/wwwroot/cypay/public/index.php on line 21" while reading response header from upstream, client: 39.155.215.246, server: 129.138.226.78, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "129.138.226.78"
我按照一些文档里写的删除 .user.ini文件
注释了fastcgi.conf里的最后一行
重启nginx结果还是不好使
哪位大神指导怎么回事呀。如何解决
有没有了解的朋友啊。多谢了 显示这个就肯定是没改对、没移除或没生效
.user.ini 是需要重启php-fpm的
fastcgi.conf是从其nginx
页:
[1]