Reputation: 3103
I'm trying to deploy my laravel app to a cPanel Shared Hosting. Here is the app and system features:
I've done these steps:
APP_URL=http://example.com/
APP_LOG_FILE=/home/example/example/storage/logs/laravel.log
DB_DATABASE=dbname
DB_USERNAME=user
DB_PASSWORD='pass'
/home/example/example/public
folder.storage
folder in the public
folder.When try to access, it throws this error:
I can't understand what's the problem.
Thanks.
Upvotes: 1
Views: 399
Reputation: 77
This issue might occur due to change in APP_KEY value in your .env file.
APP_KEY is used for secure data transmission and Laravel recommends to do that by setting it to a random string.
You can run this command:
php artisan key:generate
php artisan config:cache
php artisan route:cache
php artisan view:cache
Upvotes: 2