配置好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 22Warning: 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 可能不是最佳方法,不过你可以去fastcgi.conf把最下面那条配置注释掉 自己在论坛搜索:laravel 就能找到解决方法
或直接看官网文档 https://lnmp.org/faq/lnmp-vhost-add-howto.html#user.ini
页:
[1]