The mac is invalid

Sometimes, usually after a migration of the hostware environment where the .env file was not successfully migrated, this error occurs: "The mac is invalid"

This can be fixed by the following command to open a PHP shell via SSH.

cd /var/www/hostware && php artisan tinker

Insert your hostware license key inside the following command and paste the command into the PHP shell. The error should be fixed.

app(App\Framework\Core\ConfigService::class)->save(['core.license.key' => Crypt::encrypt("HIER_LIZENZ_EINFÜGEN")]);

Last updated

Was this helpful?