【问题标题】:Laravel 5.3 PHP Artisan not working PHP Warning: require(bootstrap/../vendor/autoload.php)Laravel 5.3 PHP Artisan 不工作 PHP 警告:需要(bootstrap/../vendor/autoload.php)
【发布时间】:2017-03-19 19:49:37
【问题描述】:

我正在使用 ubuntu 14.04 在 xampp for ubuntu 上运行我的项目 php 7.0 版 下载 laravel 5.3 项目后,当我尝试运行 php artisan 时,它给了我

[PHP 警告:需要(/opt/lampp/htdocs/7arefa-app/bootstrap/../vendor/autoload.php):无法打开流:/opt/lampp/htdocs/ 中没有此类文件或目录7arefa-app/bootstrap/autoload.php 第 17 行]

我需要帮助

【问题讨论】:

  • 您是否尝试过 composer 更新?

标签: php ubuntu laravel-5.3 laravel-artisan


【解决方案1】:

您是否为目录storage & bootstrap/cache 设置了权限?如果没有,请运行

sudo chmod -R 777 storage/
sudo chmod -R 777 bootstrap/cache/

【讨论】:

    猜你喜欢
    • 2020-01-10
    • 2014-11-25
    • 1970-01-01
    • 2017-04-10
    • 1970-01-01
    • 2015-04-12
    • 2018-11-10
    • 2016-09-04
    • 2020-01-16
    相关资源
    最近更新 更多