Deploy a laravel application to shared hosting and get "No application encryption key has been specified." error

lanyicsa

I am trying to deploy my laravel 5.7 application on shared hosting, but get "No application encryption key has been specified.". I run php artisan key:generate on my localhost and after re-deployed the application, but didn't work.

What could be wrong with?

Bilal Khan

I'm face to the same issue but a lot search I have found a solution.
I'm not sure this is a good solution or not because I'm not a web developer, anyway put the following code in project-name\config\app.php

‘key’ => env(‘APP_KEY’, ‘base64:insert key here’),

copy key from .env file

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

No Application Encryption Key Has Been Specified

Deploy Laravel 5 using only FTP in a shared hosting

How to Deploy Laravel 5 on shared cPanel hosting

Laravel application shared hosting, storage folder symbolic Link issue

Sending mail with Laravel on shared hosting

Laravel 5.5 Error 500 in Cpanel Shared Hosting

How to deploy Laravel 5.5 app to Godaddy cPanel shared hosting

Deploying Laravel 5.4 to Shared Hosting

Laravel on shared hosting with Subdomain

Laravel file_put_contents error on shared hosting

Laravel - Schedule queues returns a 503 error on shared hosting

deploy symfony 4.2 project to shared hosting by filezilla

How to deploy lumen framework on shared hosting (subdomain)

How to deploy Yii2 Advanced application on a shared Hosting

Parse error after deploy Laravel 5.1 on shared hosting

hosting an application with the hosting provider (shared hosting)

Shared hosting: WordPress/laravel 5

Error when trying to deploy Qt application using shared libraries

403 error on Ajax Post Laravel shared hosting

Laravel and shared hosting CURL not working

Symfony4 deploy to shared hosting

htaccess with Laravel on shared hosting

Deploy an asmx web service to a shared hosting server

Symfony4 deploy to shared hosting getting error 500

How do I deploy two Laravel 7 project into shared hosting at hostGator?

Deploy Next.js to Shared Hosting

Deploying Laravel 7 and Vue SPA application into shared hosting

Laravel 8 project deploy to shared hosting - security issues and public_html folder

Error 404 in a shared hosting in Laravel 8

TOP Ranking

HotTag

Archive