Forums / Setup & design / Multisite Installation?

Multisite Installation?

Author Message

Denis Marcaux

Monday 23 February 2009 9:27:58 am

Is it possible to use a single eZ Publish installation to serve multiple websites?

I mean installing the eZ Publish distribution once and using it for www.example.net with a set of pages and users and for www.example.org with a different set of pages and users.

For instance, the SPIP CMS is able to do that as documented here (http://www.spip.net/en_article3581.html). I am looking for a similar setup for eZ but I did not find anything relevant in eZ's documentation. Did I miss something? Is it possible? Documented? Reasonnable?

Thanks in advance.

Felix Woldt

Tuesday 24 February 2009 12:22:05 am

Hi Denis,

yes - you can :-)

It is possible to have one ez source installation and a lot of different sites ( db's ) with different siteaccesses.

We do this for our own projects.
We put all projektrelated stuff (design, siteaccess) which point to one db in a single ez extension called site_projectname. So we have a good handling.

e.g we have an installation with 38 different sites ( ez4.0.1 with lighttpd and php fastcgi ).
We did some small ez patches to have a better handling of this type of installation.

It is also possible to have one ez db with different domains and sets of users.
For this you have to create different contentstructures and roles.

It depends what you want to do.

Hope this will help a little bit.
FElix

http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com

CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter

Denis Marcaux

Tuesday 24 February 2009 1:29:51 am

Hi Felix,

Thank you for your answer. I have been looking for the site_projectname extension you have mentionned and all I could find is this discussion :
http://ez.no/br/developer/forum/suggestions/ini_priority_vs_extension_settings/(offset)/20

It leads to a not-yet-integrated lookalike patch :
http://issues.ez.no/IssueView.php?Id=13382&activeItem=1

Is this what you were refering to? If it is, is there any documentation explaining how to configure it?

I must confess I am a bit unconfortable with using an unintegrated patch, is there any alternative solution to this problem?

Felix Woldt

Tuesday 24 February 2009 1:47:50 am

you do not need to patch ez. But the patches makes it much easear to keep control over the different settings.

you can still do the following, but siteaccesses + designs in an ezextension.
You have to care about global ini settings.

extension
- site_projectname
  - design
     - yourdesign
  - settings
     - siteAccess1
         site.ini.append.php ( put here all sitaccessrelated stuff )

     - sieAccess2
     site.ini.append.php (  site_projectname/settings/site.ini.append.php => this settings are used for all site_extensions - only put here information about HostMatchItems ... )
...

settings
  - override
      site.ini.append.php  ( ActiveExtensions[]=site_projectname )

Hope this will help.
best regards
Felix

http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com

CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter

eZ debug

Timing: Jan 17 2025 21:21:09
Script start
Timing: Jan 17 2025 21:21:09
Module start 'content'
Timing: Jan 17 2025 21:21:10
Module end 'content'
Timing: Jan 17 2025 21:21:10
Script end

Main resources:

Total runtime0.8667 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 596.0391180.8438
Module start 'content' 0.00530.7524 776.8828604.0000
Module end 'content' 0.75780.1088 1,380.8828336.9922
Script end 0.8666  1,717.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4259210.0002
Check MTime0.00140.1591210.0001
Mysql Total
Database connection0.00060.073110.0006
Mysqli_queries0.793291.52641970.0040
Looping result0.00180.20731950.0000
Template Total0.844097.420.4220
Template load0.00180.206920.0009
Template processing0.842297.175620.4211
Template load and register function0.00020.024510.0002
states
state_id_array0.00060.068910.0006
state_identifier_array0.00120.133520.0006
Override
Cache load0.00150.1787380.0000
Sytem overhead
Fetch class attribute can translate value0.00090.106930.0003
Fetch class attribute name0.00120.133850.0002
XML
Image XML parsing0.00100.112630.0003
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00350.3983270.0001
String conversion0.00000.000630.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs