LoginSignup
2
1

More than 3 years have passed since last update.

Laravel セットアップ中つまづいたことメモ

Posted at

エラー1. No application encryption key has been specified.

これはencryption keyを設定しないと出るエラーです。
が、 php artisan key:generateでキーを生成しても出続けるエラーに困惑しました

解決方法

configのキャッシュが効いているのが原因でした。

$ php artisan config:clear

でキャッシュをクリアすると無事このエラーが解消されました。
参照:エラー"No application encryption key has been specified."が出るとき

エラー2. The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.

エラー文を読む限り、サポートされている記号でないですよ!と怒られているよう。

色々調べてみると、どうやらbootstrapフォルダのパーミッションの問題らしい。
ls -l で調べてみると drwxr-xr-xとなっていたので、

$ chmod 775 bootstrap

でパーミッションを変更。

そしてkeyをgenerateしてキャッシュをクリアすれば無事表示されました。

$ php artisan key:generate
$ php artisan config:clear

スクリーンショット 2021-03-05 15.26.34.png

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1