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

Can not access admin siteaccess in ezpublish 5 fresh install using host mode

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: High High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Install
    • Environment:

      Mac OS X 10.6.8
      Apache 2
      PHP 5.3.15

      Description

      Since the issue EZP-19837 is fixed, I could install a fresh ezpublish 5 install using git on my local environment.
      I can access the "front" siteaccess, but when using the url set for admin siteaccess I keep going onto the front one (ezdemo).

      No idea what is going wrong. No clear debug / log about SiteAccess determination somewhere ... In the profiler, Looking in Request everything seems ok and I have this as siteaccess value: Object(eZ\Bundle\EzPublishCoreBundle\SiteAccess)

        Issue Links

          Activity

          Hide
          Vidar Langseid added a comment -

          Tested ezpublish5-ee-bul-tarballs········ build #98, ( from Nov 8, 2012 12:11:31 AM )
          Installed ezdemo without democontent without any problems, both front-end and admin is accessible in two differents URLS

          What package did you try to install ?

          Show
          Vidar Langseid added a comment - Tested ezpublish5-ee-bul-tarballs········ build #98, ( from Nov 8, 2012 12:11:31 AM ) Installed ezdemo without democontent without any problems, both front-end and admin is accessible in two differents URLS What package did you try to install ?
          Hide
          Vidar Langseid added a comment -

          I see now that you say you installed ezdemo...
          I also tried installing ezdemo with democonent in host mode, works fine

          Show
          Vidar Langseid added a comment - I see now that you say you installed ezdemo... I also tried installing ezdemo with democonent in host mode, works fine
          Hide
          Nicolas OTTAVI added a comment -

          I followed the process for installation with GIT
          https://github.com/ezsystems/ezpublish5/blob/master/INSTALL.md

          Did that 2 days ago, installing ezdemo with content too in HOST mode (not URI)

          Show
          Nicolas OTTAVI added a comment - I followed the process for installation with GIT https://github.com/ezsystems/ezpublish5/blob/master/INSTALL.md Did that 2 days ago, installing ezdemo with content too in HOST mode (not URI)
          Hide
          Bertrand Dunogier added a comment - - edited

          Hi Nicolas. Thank you for testing again... it really should have worked this time.

          Could you please provide me with:

          • the contents of your ezpublish_<env>.yml (it will be ezpublish_prod.yml if you use web/index.php, or ezpublish_dev.yml if you use web/index_dev.php.
          • the contents of your settings/siteaccess/<admin>/site.ini.append.php
          • the URI you use to access the backoffice
          • the package you used in the setup wizard, the mapping choice (host/uri)... you see my point.

          Thank you in advance.

          Show
          Bertrand Dunogier added a comment - - edited Hi Nicolas. Thank you for testing again... it really should have worked this time. Could you please provide me with: the contents of your ezpublish_<env>.yml (it will be ezpublish_prod.yml if you use web/index.php , or ezpublish_dev.yml if you use web/index_dev.php . the contents of your settings/siteaccess/<admin>/site.ini.append.php the URI you use to access the backoffice the package you used in the setup wizard, the mapping choice (host/uri)... you see my point. Thank you in advance.
          Hide
          Nicolas OTTAVI added a comment - - edited

          Sure

          Here is the ezpublish_dev.yml

          ezpublish_dev.yml

          ezpublish:
              siteaccess:
                  default_siteaccess: fre
                  list:
                      - ezdemo_site_user
                      - fre
                      - ezdemo_site_admin
                  groups:
                      ezdemo_site_group:
                          - ezdemo_site_user
                          - fre
                          - ezdemo_site_admin
                  match:
                      Map\Host:
                          ez5admin.agence-differente.fr: ezdemo_site_admin
                          ez5.agence-differente.fr: ezdemo_site_user
                          fre.1: fre
              system:
                  ezdemo_site_group:
                      database:
                          type: mysql
                          user: root
                          password: 1Pxxxxx
                          server: localhost
                          database_name: ez5
                      var_dir: var/ezdemo_site
                  fre:
                      image_variations:
                          small:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [100, 160] }
                          medium:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [200, 290] }
                          listitem:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [130, 190] }
                          articleimage:
                              reference: null
                              filters:
                                  - { name: geometry/scalewidth, params: [770] }
                          articlethumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [170, 220] }
                          gallerythumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [105, 100] }
                          galleryline:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [70, 150] }
                          imagelarge:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [550, 730] }
                          large:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [360, 440] }
                          rss:
                              reference: null
                              filters:
                                  - { name: geometry/scale, params: [88, 31] }
                          logo:
                              reference: null
                              filters:
                                  - { name: geometry/scaleheight, params: [36] }
                          infoboximage:
                              reference: null
                              filters:
                                  - { name: geometry/scalewidth, params: [75] }
                          billboard:
                              reference: null
                              filters:
                                  - { name: geometry/scalewidth, params: [764] }
                          productthumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [170, 220] }
                          productimage:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownwidthonly, params: [770] }
                  ezdemo_site_admin:
                      url_alias_router: false
              imagemagick:
                  enabled: false
          imports:
              -
                  resource: ezpublish.yml
          

          settings/siteaccess/ezdemo_site_admin/site.ini.append.php

          <?php /* #?ini charset="utf-8"?
           
          [DatabaseSettings]
          DatabaseImplementation=ezmysqli
          Server=localhost
          Port=
          User=root
          Password=1Pxxxx
          Database=ez5
          Charset=
          Socket=disabled
           
          [InformationCollectionSettings]
          EmailReceiver=
           
          [SiteSettings]
          SiteName=Ressourceries
          SiteURL=ez5.agence-differente.fr
          DefaultPage=content/dashboard
          LoginPage=custom
           
          [UserSettings]
          RegistrationEmail=
           
          [SiteAccessSettings]
          RequireUserLogin=true
          RelatedSiteAccessList[]=ezdemo_site_user
          RelatedSiteAccessList[]=fre
          RelatedSiteAccessList[]=ezdemo_site_admin
          ShowHiddenNodes=true
           
          [DesignSettings]
          SiteDesign=ezdemo_site_admin
          AdditionalSiteDesignList[]=admin2
          AdditionalSiteDesignList[]=admin
          AdditionalSiteDesignList[]=ezdemo
           
          [RegionalSettings]
          Locale=fre-FR
          ContentObjectLocale=fre-FR
          ShowUntranslatedObjects=enabled
          SiteLanguageList[]=fre-FR
          TextTranslation=enabled
           
          [FileSettings]
          VarDir=var/ezdemo_site
           
          [ContentSettings]
          CachedViewPreferences[full]=admin_navigation_content=1;admin_children_viewmode=list;admin_list_limit=1
          TranslationList=
           
          [MailSettings]
          AdminEmail=nicolas@agence-differente.fr
          EmailSender=
          */ ?>
          

          Uri to access Bo: ez5admin.agence-differente.fr
          Package ezdemo site with democontent and HOST mode chosen as mapping

          I have done some other test like login to ez5admin.agence-differente.fr/content/dashboard and got redirected to /ezsetup with strange error message regarding the database. So I think there is a problem somewhere with the cache. I will then try to redo the whole process and will let you know ...

          Thx
          Nicolas

          Show
          Nicolas OTTAVI added a comment - - edited Sure Here is the ezpublish_dev.yml ezpublish_dev.yml ezpublish: siteaccess: default_siteaccess: fre list: - ezdemo_site_user - fre - ezdemo_site_admin groups: ezdemo_site_group: - ezdemo_site_user - fre - ezdemo_site_admin match: Map\Host: ez5admin.agence-differente.fr: ezdemo_site_admin ez5.agence-differente.fr: ezdemo_site_user fre.1: fre system: ezdemo_site_group: database: type: mysql user: root password: 1Pxxxxx server: localhost database_name: ez5 var_dir: var/ezdemo_site fre: image_variations: small: reference: null filters: - { name: geometry/scaledownonly, params: [100, 160] } medium: reference: null filters: - { name: geometry/scaledownonly, params: [200, 290] } listitem: reference: null filters: - { name: geometry/scaledownonly, params: [130, 190] } articleimage: reference: null filters: - { name: geometry/scalewidth, params: [770] } articlethumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [170, 220] } gallerythumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [105, 100] } galleryline: reference: null filters: - { name: geometry/scaledownonly, params: [70, 150] } imagelarge: reference: null filters: - { name: geometry/scaledownonly, params: [550, 730] } large: reference: null filters: - { name: geometry/scaledownonly, params: [360, 440] } rss: reference: null filters: - { name: geometry/scale, params: [88, 31] } logo: reference: null filters: - { name: geometry/scaleheight, params: [36] } infoboximage: reference: null filters: - { name: geometry/scalewidth, params: [75] } billboard: reference: null filters: - { name: geometry/scalewidth, params: [764] } productthumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [170, 220] } productimage: reference: null filters: - { name: geometry/scaledownwidthonly, params: [770] } ezdemo_site_admin: url_alias_router: false imagemagick: enabled: false imports: - resource: ezpublish.yml settings/siteaccess/ezdemo_site_admin/site.ini.append.php <?php /* #?ini charset="utf-8"?   [DatabaseSettings] DatabaseImplementation=ezmysqli Server=localhost Port= User=root Password=1Pxxxx Database=ez5 Charset= Socket=disabled   [InformationCollectionSettings] EmailReceiver=   [SiteSettings] SiteName=Ressourceries SiteURL=ez5.agence-differente.fr DefaultPage=content/dashboard LoginPage=custom   [UserSettings] RegistrationEmail=   [SiteAccessSettings] RequireUserLogin=true RelatedSiteAccessList[]=ezdemo_site_user RelatedSiteAccessList[]=fre RelatedSiteAccessList[]=ezdemo_site_admin ShowHiddenNodes=true   [DesignSettings] SiteDesign=ezdemo_site_admin AdditionalSiteDesignList[]=admin2 AdditionalSiteDesignList[]=admin AdditionalSiteDesignList[]=ezdemo   [RegionalSettings] Locale=fre-FR ContentObjectLocale=fre-FR ShowUntranslatedObjects=enabled SiteLanguageList[]=fre-FR TextTranslation=enabled   [FileSettings] VarDir=var/ezdemo_site   [ContentSettings] CachedViewPreferences[full]=admin_navigation_content=1;admin_children_viewmode=list;admin_list_limit=1 TranslationList=   [MailSettings] AdminEmail=nicolas@agence-differente.fr EmailSender= */ ?> Uri to access Bo: ez5admin.agence-differente.fr Package ezdemo site with democontent and HOST mode chosen as mapping I have done some other test like login to ez5admin.agence-differente.fr/content/dashboard and got redirected to /ezsetup with strange error message regarding the database. So I think there is a problem somewhere with the cache. I will then try to redo the whole process and will let you know ... Thx Nicolas
          Hide
          Vidar Langseid added a comment -

          The install instructions still say nothing about permission on config/ dir....

          $ sudo setfacl -R -m u:www-data:rwx -m u:www-data:rwx ezpublish/cache ezpublish/logs 
          $ sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx ezpublish/cache ezpublish/logs 

          I though that was fixed as part of EZP-19956, but obviously not.

          Could that be related to this problem Nicolas here have?

          I have created https://jira.ez.no/browse/EZP-20016, addressing the config/ problem

          Show
          Vidar Langseid added a comment - The install instructions still say nothing about permission on config/ dir.... $ sudo setfacl -R -m u:www-data:rwx -m u:www-data:rwx ezpublish/cache ezpublish/logs $ sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx ezpublish/cache ezpublish/logs I though that was fixed as part of EZP-19956 , but obviously not. Could that be related to this problem Nicolas here have? I have created https://jira.ez.no/browse/EZP-20016 , addressing the config/ problem
          Hide
          Nicolas OTTAVI added a comment -

          Thanks for your feedback.
          I have redo an install, but I wanted to be sure so I have tried the recommended soluton (URL mapping mode).
          This way it works and I can access both frontend and backend. I will try to redo a new install later with Hostname mapping.

          I took care to set permission on cache, logs and config
          Regards

          Show
          Nicolas OTTAVI added a comment - Thanks for your feedback. I have redo an install, but I wanted to be sure so I have tried the recommended soluton (URL mapping mode). This way it works and I can access both frontend and backend. I will try to redo a new install later with Hostname mapping. I took care to set permission on cache, logs and config Regards

            People

            • Assignee:
              Unassigned
              Reporter:
              Nicolas OTTAVI
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: