Forums / Install & configuration / Trying to understand multiple site install

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

eZ debug

Timing: Jan 18 2025 15:01:31
Script start
Timing: Jan 18 2025 15:01:31
Module start 'content'
Timing: Jan 18 2025 15:01:33
Module end 'content'
Timing: Jan 18 2025 15:01:33
Script end

Main resources:

Total runtime1.7916 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 587.9453180.8047
Module start 'content' 0.00771.6180 768.7500615.2500
Module end 'content' 1.62570.1658 1,384.0000345.3594
Script end 1.7915  1,729.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2115210.0002
Check MTime0.00150.0819210.0001
Mysql Total
Database connection0.00130.072710.0013
Mysqli_queries1.704995.16092030.0084
Looping result0.00260.14652010.0000
Template Total1.751397.820.8757
Template load0.00200.110920.0010
Template processing1.749397.642420.8747
Template load and register function0.00020.013110.0002
states
state_id_array0.00270.150410.0027
state_identifier_array0.00190.105220.0009
Override
Cache load0.00180.0986680.0000
Sytem overhead
Fetch class attribute can translate value0.00140.078830.0005
Fetch class attribute name0.00130.072870.0002
XML
Image XML parsing0.00100.053530.0003
class_abstraction
Instantiating content class attribute0.00000.001380.0000
General
dbfile0.00520.2881280.0002
String conversion0.00000.000330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 41
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs