打印

配置好laravel之后报open_basedir错误如何解决(LNMP)

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

TOP

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

TOP

自己在论坛搜索:laravel 就能找到解决方法
或直接看官网文档 https://lnmp.org/faq/lnmp-vhost-add-howto.html#user.ini

LNMP付费问题排查/LNMP技术支持/Paypal信用卡代付/代购VPS,域名,软件等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 要求反馈问题!

TOP