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.

eZ debug

Timing: Jan 31 2025 03:31:10
Script start
Timing: Jan 31 2025 03:31:10
Module start 'layout'
Timing: Jan 31 2025 03:31:10
Module start 'content'
Timing: Jan 31 2025 03:31:10
Module end 'content'
Timing: Jan 31 2025 03:31:10
Script end

Main resources:

Total runtime0.0260 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.3828151.2422
Module start 'layout' 0.00590.0041 739.6250220.7344
Module start 'content' 0.00990.0146 960.35941,009.9766
Module end 'content' 0.02460.0014 1,970.335941.9922
Script end 0.0259  2,012.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002710.3327140.0002
Check MTime0.00114.1467140.0001
Mysql Total
Database connection0.00083.114110.0008
Mysqli_queries0.002710.436430.0009
Looping result0.00000.065210.0000
Template Total0.00103.710.0010
Template load0.00072.706610.0007
Template processing0.00020.950910.0002
Override
Cache load0.00051.828310.0005
General
dbfile0.002810.747680.0003
String conversion0.00000.026640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs