I\'m using Ubuntu 14.04 on my machine. I installed composer and then laravel in the document root i.e. /var/www
I
You can create it & rerun the command.
# cd /var/www/laravel # cp .env.example .env //renames .env.example to .env # php artisan key:generate Application key set successfully.