标题: 配置好laravel之后报open_basedir错误如何解决(LNMP) [打印本页] 作者: as478203136 时间: 2017-8-18 09:47 标题: 配置好laravel之后报open_basedir错误如何解决(LNMP) Warning: require(): open_basedir restriction in effect. File(/home/www/wb/bootstrap/autoload.php) is not within the allowed path(s): (/home/www/wb/public/:/tmp/:/proc/) in /home/www/wb/public/index.php on line 22
Warning: require(/home/www/wb/bootstrap/autoload.php): failed to open stream: Operation not permitted in /home/www/wb/public/index.php on line 22
Fatal error: require(): Failed opening required '/home/www/wb/public/../bootstrap/autoload.php' (include_path='.:/usr/local/php/lib/php') in /home/www/wb/public/index.php on line 22作者: coco113998274 时间: 2017-8-18 11:59
可能不是最佳方法,不过你可以去fastcgi.conf把最下面那条配置注释掉作者: licess 时间: 2017-8-18 17:04
自己在论坛搜索:laravel 就能找到解决方法
或直接看官网文档 https://lnmp.org/faq/lnmp-vhost-add-howto.html#user.ini