Details
-
Bug
-
Resolution: Fixed
-
High
-
5.2
-
None
Description
Please check Manual configuration of eZ Publish documentation page, namely the topic "Generate eZ Publish .yml configuration".
To generate yml configuration for the new Symfony stack a console command has been provided to cover single site setups.
php ezpublish/console ezpublish:configure --env=prod <group> <admin_siteaccess>
This does not work. Instead, it returns the following error:
[PDOException]
SQLSTATE[42000] [1044] Access denied for user ''@'localhost' to database 'none'
This makes sense, since EzPublishKernel will need an ezpublish_xxx.yml and so far there are only ezpublish_setup.yml and ezpublish_behat.yml, so it will always use ezpublish_setup.yml with no database information.
public function registerContainerConfiguration( LoaderInterface $loader ) { $environment = $this->getEnvironment(); $loader->load( __DIR__ . '/config/config_' . $environment . '.yml' ); $configFile = __DIR__ . '/config/ezpublish_' . $environment . '.yml'; if ( !is_file( $configFile ) ) { $configFile = __DIR__ . '/config/ezpublish_setup.yml'; }
Following the page, you can manually create an ezpublish_prod file by copying ezpublish.yml.example to ezpublish_prod.yml but it does not seems to follow the same logic as ezpublish setup wizard since it shares a same "ezpublish.yml" included by each "ezpublish_environment.yml" file.
That can be confusing to someone used setup installation.
Attachments
Issue Links
- relates to
-
EZP-20575 Setup wizard fails to generate yml config when using kickstart.ini
- Closed
-
EZP-22033 Installer: Class 'eZPage' not found
- Closed
-
EZP-22054 eZ publish installation fails with fatal error: emergency.EMERGENCY: Class 'eZPage' not found
- Closed
-
EZP-22453 eZ Setup throws an error on the first step (5.2EE only)
- Closed
-
EZP-22419 Clearing cache in CLI when eZ Publish is not yet installed leads to database error
- Closed