Laravel访问出错提示:`Warning: require(/vendor/autoload.php): failed to open stream: No such file or di解决方法
本文实例讲述了Laravel框架访问出错提示:`Warning require(vendorautoload.php) failed to open stream No such file or dire解决方法。分享给大家供大家参考,具体如下:
错误信息:
`Warning: require(/http/www.mywakavLee.cn/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /http/www.mywakavLee.cn/bootstrap/autoload.php on line 17
Fatal error: require(): Failed opening required ‘/http/www.mywakavLee.cn/bootstrap/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /http/www.mywakavLee.cn/bootstrap/autoload.php on line 17`
原因:网站根目录下缺少vendor这个存放laraver依赖包的目录
解决方法:使用composer install
进行安装(没有安装过的情况下,以前安装过的话使用:composer update
)
如图:
因为我没有安装过,直接使用了composer update
命令,于是就报错了,如图:
然后就可以访问网站了。
更多关于Laravel相关内容感兴趣的读者可查看本站专题:《Laravel框架入门与进阶教程》、《php优秀开发框架总结》、《php面向对象程序设计入门教程》、《php+mysql数据库操作入门教程》及《php常见数据库操作技巧汇总》
希望本文所述对大家基于Laravel框架的PHP程序设计有所帮助。
您可能感兴趣的文章:
- Laravel访问出错错误信息:`Warning: require(/vendor/autoload.php): failed to open stream: No such file or dire
- Laravel访问出错错误信息:`Warning: require(/vendor/autoload.php): failed to open stream: No such file or dire
- Yii2访问出错错误信息:`Warning: require(/vendor/autoload.php): failed to open stream: No such file or dire
- Warning: require(D:\wamp\www\glink-smart\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\wamp\www\glink-smart\bootstrap\autoload.php on line 1
- failed to open stream: No such file or directory in includes/src/Varien_Autoload.php on l
- iis服务器php环境 failed to open stream: No such file or directory解决办法
- Warning: main(./Config.php): failed to open stream: No such file or directory
- 在把jQuery的ajax例子放在AppServ上运行时出错,failed to open stream: No such file or directory in Unknown on line 0
- Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
- app/bootstrap.php.cache : failed to open stream: No such file or directory
- Warning: require_once(../models/Message.php) [function.require-once]: failed to open stream: No such
- 使用solr报错,错误信息 include(SolrClient.php): failed to open stream: No such file or directory
- include(Redis.php): failed to open stream: No such file or directory
- 今天遇到一个问题,很纠结include(authenticate.php): failed to open stream: No such file or directory
- php使用include报错require_once(../include.php): failed to open stream: No such file or directo
- Laravel执行migrate命令提示:No such file or directory的解决方法
- php错误提示failed to open stream: HTTP request failed!的完美解决方法
- mac 启动php-fpm报错 failed to open configuration file '/private/etc/php-fpm.conf': No such file or direc
- 【转】Laravel执行migrate命令提示:No such file or directory的解决方法
- android学习历程——“Unable to open log device '/dev/log/main': No such file or directory”错误解决方法