multi-site configuration

Author Message

Michael Zielinski

Tuesday 13 June 2006 3:54:59 am

Hi,
we are running ezPublish on our webserver and currently there is one site (www.agrsci.dk) that uses it.
I have been asked to add another site. I have searched through the docs and the forum, but some questions remain unanswered:

1. Both sites should run their own db. How do I create a new db?
2. Both sites should have their own layout. Do I simply add the new site(s) with HostMatchMapItem and create site.ini's in the corresponding folders and create corresponding design folders?

Thanks

Michael

Matthew Carroll

Sunday 18 June 2006 3:15:20 pm

1. It's as if you were doing a manual installation: http://ez.no/doc/ez_publish/technical_manual/3_8/installation/manual_installation/manual_configuration_of_ez_publish

2. You have the right idea. You need to separate out three things: the design, var, and siteaccess files. For example:

design/site1/...
design/site2/...

var/site1/...
var/site2/...

settings/siteaccess/site1_user/...
settings/siteaccess/site1_admin/...
settings/siteaccess/site2_user/...
settings/siteaccess/site2_admin/...

...with all the corresponding settings to reference those directories in your site.ini.append.php files

Notes:

- If you are already using the main /var directory for your first site, it should still work fine using var/site2 for your second site

- depending on how many sites you are setting up it can be worth sym-linking out those directories to another location for each site, to facilitate easier upgrades.

- in the site.ini.append.php, it's a good idea to set this array for each siteaccess:

AvailableSiteAccessList[]
AvailableSiteAccessList[]=site1_user
AvailableSiteAccessList[]=site1_admin

...that means other siteaccesses don't appear in, for example, the debug settings dropdown in your admin site.

Good luck, and remember to back everything up first just in case!
Matthew

http://carroll.org.uk

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 20 2025 06:38:22
Script start
Timing: Jan 20 2025 06:38:22
Module start 'layout'
Timing: Jan 20 2025 06:38:22
Module start 'content'
Timing: Jan 20 2025 06:38:23
Module end 'content'
Timing: Jan 20 2025 06:38:23
Script end

Main resources:

Total runtime1.1251 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.1797152.6250
Module start 'layout' 0.00480.0022 741.804739.4453
Module start 'content' 0.00701.1164 781.2500529.5234
Module end 'content' 1.12340.0016 1,310.77348.1641
Script end 1.1250  1,318.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2603160.0002
Check MTime0.00110.1022160.0001
Mysql Total
Database connection0.00070.063910.0007
Mysqli_queries1.078195.8298540.0200
Looping result0.00050.0430520.0000
Template Total1.094597.320.5473
Template load0.00180.157220.0009
Template processing1.092797.128420.5464
Template load and register function0.00010.012810.0001
states
state_id_array0.00210.189110.0021
state_identifier_array0.00210.187420.0011
Override
Cache load0.00140.1261330.0000
Sytem overhead
Fetch class attribute can translate value0.00040.039320.0002
Fetch class attribute name0.00120.102830.0004
XML
Image XML parsing0.00060.053820.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00150.1352160.0001
String conversion0.00000.000740.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs