Forums / Install & configuration / Questions about Multi-Site

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.

eZ debug

Timing: Jan 30 2025 21:41:36
Script start
Timing: Jan 30 2025 21:41:36
Module start 'content'
Timing: Jan 30 2025 21:41:36
Module end 'content'
Timing: Jan 30 2025 21:41:36
Script end

Main resources:

Total runtime0.1836 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 588.0313370.2891
Module start 'content' 0.00840.0126 958.32031,013.5469
Module end 'content' 0.02100.1625 1,971.86723,901.8438
Script end 0.1835  5,873.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00472.5388200.0002
Check MTime0.00150.8230200.0001
Mysql Total
Database connection0.00060.349210.0006
Mysqli_queries0.093951.13491410.0007
Looping result0.00140.77251390.0000
Template Total0.162188.310.1621
Template load0.00080.440610.0008
Template processing0.161387.849810.1613
Override
Cache load0.00050.293110.0005
Sytem overhead
Fetch class attribute can translate value0.00170.939010.0017
XML
Image XML parsing0.00030.155810.0003
General
dbfile0.00372.0408200.0002
String conversion0.00000.003430.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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