Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22327

Manual Installation is not working as it should, according to documentation page

    XMLWordPrintable

Details

    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.

      ezpublish/EzPublishKernel.php
          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

        Activity

          People

            Unassigned Unassigned
            eduardo.fernandes-obsolete@ez.no Eduardo Fernandes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours
                5h