Questions about Multi-Site

Author Message

Stefan Müller

Monday 19 May 2008 2:11:12 am

Hello together,

I have installed EZ Publish 4.0 on my PC to test the functionallity of Multi-Site. I am searching arount the forum and documentation how to setup such a multi site. Without success.

Is there a documentation how to do this? I have only found several topics for the version 3.x but not for 4.0. Could you please give me some tips? Either in english or in german.

best regards,
Stefan

André R.

Monday 19 May 2008 2:18:22 am

The basic haven't changed much from ezp 3.x to 4.x, you still set up several site-accesses and configure them to use different parts of the node tree and/or different language and/or different database and/or different design.

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

Stefan Müller

Monday 19 May 2008 2:51:00 am

Ok, what I have done is following:

1. I have created a copy of an existing folder in siteaccess and changed the site.ini.append.php

2. I have signed in to the backend and defined a new policy for the anonymous role (user/login/siteaccess)

3. Now I can view this new site with http://localhost/ez/index.php/xxx/

But how can I login into the Backend of this site? If I login, I allways get the administration of the "Default site".

André R.

Monday 19 May 2008 3:13:51 am

Currently they share back end, if you want the two sites to be independent of each other, then make a copy of the back end siteaccess as well (normally something like "*_site_admin").

Then modify each of the siteaccesses for "site2" to use another database(this can be a copy of the one you already use), and another var folder(a copy of the original one if you copy the database).

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

Stefan Müller

Monday 19 May 2008 4:17:35 am

First of all.... thank you very much for your help. Just one little question: You wrote that the back end shares the sites. That's no problem for me. But how can I change the content of the new site in the back end? I only have the translations which I can change. What did I wrong?

Nicolas Lescure

Monday 19 May 2008 4:34:29 am

You have to create a subtree corresponding to your 2nd website.
For example, you will have:

Home (folder)
- 1st website homepage
-- page 1
-- page 2
- 2nd website homepage
-- page 3

Frédéric DAVID

Monday 19 May 2008 5:25:43 am

After create a second subtree likeNicolas wrote, you have to modify the site.ini of each siteaccess.

For your first website :

[SiteSettings]
IndexPage=/content/view/full/( 1st website homepage node id )

For your second website :

[SiteSettings]
IndexPage=/content/view/full/( 2nd website homepage node id )

You can use the variable PathPrefix of the SiteAccessSettings section.

Blog : http://www.frefred.fr/blog/ez-publish
feZ Meta Data : http://projects.ez.no/fezmetadata

Rodrigo Costa

Friday 30 May 2008 8:18:19 am

Hii!

How can I create another database to site2?
How can I configure site.ini to acess another database?

Thanks!

André R.

Sunday 01 June 2008 12:36:58 am

By moving database settings from site wide settings in settings/override/site.ini* to each of your siteaccess specific settings in settings/siteaccess/*/site.ini*

EDIT: Remember to use different var folders for siteaccesses that use different db, this is controlled by another site.ini setting called [FileSettings]VarDir

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

Charles-Edouard Coste

Friday 05 September 2008 8:37:03 am

Notice that if you're using different databases, you won't have to use IndexPage setting due to the fact that each content tree will be in his own database.

You'll also have to make an admin siteaccess for each one.

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 18 2025 16:12:04
Script start
Timing: Jan 18 2025 16:12:04
Module start 'layout'
Timing: Jan 18 2025 16:12:04
Module start 'content'
Timing: Jan 18 2025 16:12:05
Module end 'content'
Timing: Jan 18 2025 16:12:05
Script end

Main resources:

Total runtime0.7077 sec
Peak memory usage4,096.0000 KB
Database Queries86

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.0313152.6406
Module start 'layout' 0.00490.0025 740.671939.4609
Module start 'content' 0.00750.6990 780.1328781.7578
Module end 'content' 0.70650.0012 1,561.890624.1641
Script end 0.7077  1,586.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4229160.0002
Check MTime0.00130.1852160.0001
Mysql Total
Database connection0.00060.080010.0006
Mysqli_queries0.640390.4757860.0074
Looping result0.00090.1304840.0000
Template Total0.682496.420.3412
Template load0.00180.253820.0009
Template processing0.680696.162020.3403
Template load and register function0.00030.049310.0003
states
state_id_array0.00070.098310.0007
state_identifier_array0.00060.080420.0003
Override
Cache load0.00160.2210560.0000
Sytem overhead
Fetch class attribute can translate value0.00070.095260.0001
Fetch class attribute name0.00120.1705140.0001
XML
Image XML parsing0.00230.323660.0004
class_abstraction
Instantiating content class attribute0.00000.0030160.0000
General
dbfile0.00130.1827370.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 39
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs