laravel install getting key generate error in ubunto OS

后端 未结 2 1172
野的像风
野的像风 2021-01-02 00:43

I am install \"Laravel Framework version 5.2.26\" but i am getting error for key generate in my ubuntu os

user@CN43:/var/www/html/laravel_1$ php artisan key:         


        
相关标签:
2条回答
  • 2021-01-02 01:29

    Run this command and make .env file from .env.example file:

    cp .env.example .env
    php artisan key:generate
    

    Now it's generate the key. Don't create new .env file.

    0 讨论(0)
  • 2021-01-02 01:41

    Rename .env.example to .env and fill all properties.

    If you install Laravel via Composer, this file will automatically be renamed to .env. Otherwise, you should rename the file manually

    https://laravel.com/docs/5.0/configuration#environment-configuration

    0 讨论(0)
提交回复
热议问题