問題描述
我在我的機器上使用 Ubuntu 14.04.我安裝了composer,然后在文檔根目錄中安裝了laravel,即/var/www
I'm using Ubuntu 14.04 on my machine. I installed composer and then laravel in the document root i.e. /var/www
我還向 /var/www
然后我使用 cd/var/www/laravel 進入目錄 laravel 并運行以下命令 php artisan 并且我看到那里有所有可用的命令.
Then I go to directory laravel using cd /var/www/laravel and run the following command php artisan and I got to see all the available commands there.
然后我輸入 php artisan key:generate 并得到錯誤
Then I typed in php artisan key:generate and got the error
[ErrorException] file_get_contents(/var/www/laravel/.env): failed to open stream: No such file or directory
在這里我實際上卡住了,有人可以在這方面幫助我嗎?
Here I got stuck actually, can someone please help me in this regard?
謝謝.
推薦答案
Rename .env.example
到 .env
在你的 Laravel 根文件夾中
Rename .env.example
to .env
in your laravel root folder
這篇關于如何解決錯誤“[ErrorException] file_get_contents(/var/www/laravel/.env): failed to open stream: No such file or directory"?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!