The documentation you are viewing is for an older version of this component.
Switch to the latest (v6) version.
Do not enable dev mode in production
We recommend running your applications in WSL:
$baseUrl in config/autoload/local.php to the address of the virtualhost.You should see the Dotkernel admin login page.
If you are getting exceptions or errors regarding some missing services, try running the following command:
sudo php bin/clear-config-cache.php
If
config-cache.phpis present that config will be loaded regardless of theConfigAggregator::ENABLE_CACHEinconfig/autoload/mezzio.global.php
If you ran the fixtures you will have an admin user in the database with the following credentials:
admindotadminProduction only: Make sure you modify the default admin credentials.
Development only:
session.cookie_securedoes not work locally so make sure you modify yourlocal.php, as per the following:
# other code
return [
# other configurations...
'session_config' => [
'cookie_secure' => false,
],
];
Do not change this in local.php.dist as well because this value should remain true on production.