Reputation: 1546
I uploaded all laravel project on server, its working fine on local but getting error on server, even database configuration and key is configured in env. file. even i renamed .env.example file as .env too but got same error.
Error is
"Whoops, looks like something went wrong."
my error log is here:
[2017-11-06 15:19:07] local.ERROR: exception 'RuntimeException' with message 'The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.' in /home/rndspot5/public_html/dev/lea/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php:43
Upvotes: 1
Views: 4678
Reputation: 1546
I resolved this issue, by adding web app url in .env and Config/App.php and now its working :) thanks all of you for sharing such a value able knowledge that will help me, may be later.
Upvotes: 0
Reputation: 9401
If you are on shared hosting you can use these steps
APP_KEY
to somewhere else as a backupphp artisan key:generate
from consoleAPP_KEY
and upload it to the .env file on your (shared) serverUpvotes: 1
Reputation: 2645
Judging from your error, you need to run php artisan key:generate
this will update your key of which in turn will rectify your error.
You will need to either SSH into your public_html folder if you have host permission to do so. Alternatively, you can ask your host provider to either:
You can then run: php artisan config:clear
once the new key has been generated.
Upvotes: 1