as478203136 发表于 2017-8-18 09:47:20

配置好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:59

可能不是最佳方法,不过你可以去fastcgi.conf把最下面那条配置注释掉

licess 发表于 2017-8-18 17:04:11

自己在论坛搜索:laravel 就能找到解决方法
或直接看官网文档 https://lnmp.org/faq/lnmp-vhost-add-howto.html#user.ini
页: [1]
查看完整版本: 配置好laravel之后报open_basedir错误如何解决(LNMP)