安装laravel中遇到的坑

来源:互联网 发布:h站源码整站打包 编辑:程序博客网 时间:2024/06/07 16:01

安装laravel中遇到的坑

  • Class 'Illuminate\Foundation\Application' not found
    解决方法:php composer.phar update --no-scripts

  • HTTP 500
    解决方法:

    1. 查看storage bootstrap/cache的权限修改为可写 必须修改为 -R 777
    2. 打开调试模式config/app.php debug=>env('APP_DEBUG',true)查看原因
    3. 看到The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths 可能是APP_KEY没有生成的原因
    4. 关闭调试模式然后使用artisan产生APP_KEY php artisan key:generate
    5. 修改.env.example=>.env;
原创粉丝点击