sundowatch
sundowatch

Reputation: 3103

Deploying laravel app to shared hosting - serialized closure error

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'

When try to access, it throws this error: enter image description here

I can't understand what's the problem.

Thanks.

Upvotes: 1

Views: 399

Answers (1)

Amri
Amri

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

Related Questions