欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

lnmp 环境下 部署 laravel 项目

程序员文章站 2022-06-11 16:14:37
...

出现错误

Warning: require(): open_basedir restriction in effect. File(/xxxx/vendor/autoload.php) is not within the allowed path(s): (/xxxx/public/:/tmp/:/proc/) in /xxxx/public/index.php on line 24

Warning: require(/xxxx/vendor/autoload.php): failed to open stream: Operation not permitted in /xxxx/public/index.php on line 24

Fatal error: require(): Failed opening required '/xxxx/public/../vendor/autoload.php' (include_path='.:/xxx/php') in /xxxx/public/index.php on line 24

解决:

参考 https://lnmp.org/faq/lnmp-vhost-add-howto.html#user.ini