Trying to understand multiple site install

Author Message

Mariano Sokal

Tuesday 03 July 2007 10:16:09 pm

Hello everybody, it is getting really hard for me to get this feature to work.

Actually I have the following structure:

ez1.prysmax.com
ez2.prysmax.com
ez3.prysmax.com

Each ez# should be a different site, no multilanguage yet.

This is my settings/override:

[SiteSettings]
DefaultAccess=sasori
SiteList[]
SiteList[]=sasori
SiteList[]=sasori_admin
SiteList[]=network
SiteList[]=network_admin
SiteList[]=prysmax
SiteList[]=prysmax_admin
RootNodeDepth=1
RootNodeDepth=1
RootNodeDepth=1
RootNodeDepth=1
RootNodeDepth=1
RootNodeDepth=1
RootNodeDepth=1
SiteName=Network Argentina
MetaDataArray[author]=eZ systems
MetaDataArray[copyright]=eZ systems
MetaDataArray[description]=Content Management System
MetaDataArray[keywords]=cms, publish, e-commerce, content management, development framework
SiteURL=ez3.prysmax.com/index.php

[UserSettings]
LogoutRedirect=/

[SiteAccessSettings]
CheckValidity=false
ForceVirtualHost=true
AvailableSiteAccessList[]
AvailableSiteAccessList[]=prysmax
AvailableSiteAccessList[]=prysmax_admin
AvailableSiteAccessList[]=sasori
AvailableSiteAccessList[]=sasori_admin
AvailableSiteAccessList[]=network
AvailableSiteAccessList[]=network_admin
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]
HostMatchMapItems[]=ez1.prysmax.com;prysmax
HostMatchMapItems[]=admin.ez1.prysmax.com;prysmax_admin
HostMatchMapItems[]=ez2.prysmax.com;sasori
HostMatchMapItems[]=admin.ez2.prysmax.com;sasori_admin
HostMatchMapItems[]=ez3.prysmax.com;network
HostMatchMapItems[]=admin.ez3.prysmax.com;network_admin

Behaviour:

- ez1.prysmax.com shows a weird welcome screen, with no menus nor anything (site is up, you might want to take a look)
- ez2.prysmax.com shows "Error / kernel (1)" and "access denied"
- ez3.prysmax.com shows the same error but it provides a login form, and it shows the menus.

To be honest... i´m completely lost. After more than 4 hours reading and testing I couldn´t manage it to work fine :(

I need help.

Thanks in advance,
Mariano

André R.

Wednesday 04 July 2007 1:32:07 am

According to this,: http://ez1.prysmax.com/content/view/sitemap/2
You don't have any content, so seems to be anonymous user rights problem.

the two other sites probably need to be added to user rights as well
(add this: user -> login -> 'siteaccessname')

And RootNodeDepth=1 don't need to be listed several times, and you also might want to change it since the root of your site probably is on another level then 1.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Mariano Sokal

Thursday 05 July 2007 4:12:09 pm

Thank you very much for your reply.

I copied the database which had contents to ez1 and ez2, so it has now. Or al least it should!

RootNodeDepth appearing so many times was an error while using vi :)

Regarding to this:
<b>
the two other sites probably need to be added to user rights as well
(add this: user -> login -> 'siteaccessname')
</b>

I did that, but it seems that it is not enough. To be honest, I probably messed up everything when testing, even though I only changed those things I mentioned... I should probably start all over, which is not too much. But it is not that easy to configure this part, at least to a newbie like me.

If I do a fresh install do I get the chance to tell the wizard that I will be configuring multiple sites?

Best regards,
Mariano

Mariano Sokal

Friday 06 July 2007 11:23:28 pm

Hello again... I&#180;m a little bit worried because I read all the answers in the forum regarding multiple sites, and most of them are not clear enough or are unanswered :(

Ok, I started all over so I don&#180;t have messed up configurations and now I have two subdomains.

ez1.prysmax.com -> should be a site for "Sasori"
ez2.prysmax.com -> should be a site for "Prysmax Gaming Community"

This is my /override/site.ini.append.php (the "important" part)

[SiteSettings]
DefaultAccess=esl
SiteList[]
SiteList[]=esl
SiteList[]=eng
SiteList[]=eslprysmax
SiteList[]=engsasori
SiteList[]=sasori_site
SiteList[]=sasori_admin
SiteList[]=prysmax_site
SiteList[]=prysmax_admin
RootNodeDepth=1
<b>SiteName=Prysmax Gaming Community   </b> I wonder why is this here?
MetaDataArray[author]=eZ systems
MetaDataArray[copyright]=eZ systems
MetaDataArray[description]=Content Management System
MetaDataArray[keywords]=cms, publish, e-commerce, content management, development framework
<b>SiteURL=ez1.prysmax.com   </b> I wonder why is this here?

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]
AvailableSiteAccessList[]=esl
AvailableSiteAccessList[]=eng
AvailableSiteAccessList[]=eslprysmax
AvailableSiteAccessList[]=engprysmax
AvailableSiteAccessList[]=sasori_site
AvailableSiteAccessList[]=sasori_admin
AvailableSiteAccessList[]=prysmax_site
AvailableSiteAccessList[]=prysmax_admin
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=ez1.prysmax.com;sasori_site
HostMatchMapItems[]=adminez1.prysmax.com;sasori_admin
HostMatchMapItems[]=ez2.prysmax.com;prysmax_site
HostMatchMapItems[]=adminez2.prysmax.com;prysmax_admin

This is /settings/siteaccess/sasori_site/site.ini.php.append:

[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
User=#####
Password=#####
Database=ez_sasori
Charset=
Socket=disabled

[InformationCollectionSettings]
EmailReceiver=

[Session]
SessionNamePerSiteAccess=disabled

[SiteSettings]
SiteName=Sasori Sushi Delivery
SiteURL=ez1.prysmax.com
LoginPage=embedded
AdditionalLoginFormActionURL=http://ez1.prysmax.com/sasori_admin/user/login

[UserSettings]
RegistrationEmail=

[SiteAccessSettings]
RequireUserLogin=false
RelatedSiteAccessList[]
RelatedSiteAccessList[]=esl
RelatedSiteAccessList[]=eng
RelatedSiteAccessList[]=sasori_site
RelatedSiteAccessList[]=sasori_admin
ShowHiddenNodes=false

[DesignSettings]
SiteDesign=ezwebin
AdditionalSiteDesignList[]
AdditionalSiteDesignList[]=base

[RegionalSettings]
Locale=esl-ES
ContentObjectLocale=esl-ES
ShowUntranslatedObjects=disabled
SiteLanguageList[]
SiteLanguageList[]=esl-ES
SiteLanguageList[]=eng-US
TextTranslation=enabled

[FileSettings]
VarDir=var/ezwebin_site

[ContentSettings]
TranslationList=eng-US

[MailSettings]
AdminEmail=mariano@##########.com
EmailSender=

This is /settings/siteaccess/prysmax_site/site.ini.php.append:

[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
User=########
Password=######
Database=ez_prysmax
Charset=
Socket=disabled

[InformationCollectionSettings]
EmailReceiver=

[Session]
SessionNamePerSiteAccess=disabled

[SiteSettings]
SiteName=Prysmax Gaming Community
SiteURL=ez2.prysmax.com
LoginPage=embedded
AdditionalLoginFormActionURL=http://ez2.prysmax.com/prysmax_admin/user/login

[UserSettings]
RegistrationEmail=

[SiteAccessSettings]
RequireUserLogin=false
RelatedSiteAccessList[]
RelatedSiteAccessList[]=eslprysmax
RelatedSiteAccessList[]=engprysmax
RelatedSiteAccessList[]=prysmax_site
RelatedSiteAccessList[]=prysmax_admin
ShowHiddenNodes=false

[DesignSettings]
SiteDesign=ezwebin
AdditionalSiteDesignList[]
AdditionalSiteDesignList[]=base

[RegionalSettings]
Locale=esl-ES
ContentObjectLocale=esl-ES
ShowUntranslatedObjects=disabled
SiteLanguageList[]
SiteLanguageList[]=esl-ES
SiteLanguageList[]=eng-US
TextTranslation=enabled

[FileSettings]
VarDir=var/ezwebin_site

[ContentSettings]
TranslationList=eng-US

[MailSettings]
AdminEmail=mariano@##########.com
EmailSender=

This is what happens:

- When accessing ez1.prysmax.com there is a site, seems normal.

- When accessing ez2.prysmax.com there shows a kernel error, and it asks for a login. When I login as an admin then the site shows. Then it seems that there is a problem with anonymous but I don&#180;t know where to change it. I&#180;ve been told 2 posts ago, but I thought I changed it but I don&#180;t have a clue where to change it.

- When logged in as an admin I enter : sitesettings -> title and if I change the sitename there, then both (ez1 and ez2) change.

I&#180;m completely lost :(

Thanks again.

Mariano

Mariano Sokal

Tuesday 10 July 2007 8:08:40 pm

Well... I´ve been playing around but I still can´t make it work.

The only thing I´ve noticed now is that when I log in as an administrator (from the user site) and I go to "site settings", if I change the "TITLE" it changes for both ez1.prysmax.com and ez2.prysmax.com. It writes the setting in settings/override/site.ini.append.php and as far I can see it uses the same file for both mapped hosts.

Please help me with this one, I need to make it work and I really need your help and support.

Best regards,
Mariano

André R.

Wednesday 11 July 2007 1:24:38 am

the template look class is not multisite safe, so if you want to have different settings for the two sites you need to stop using it and rewrite to your own logic for getting site name, style and so on.

template look class is the one you edit when you click 'site settings'.

But I see you have fixed the kernel error problem, what was it ?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.