Forums / Install & configuration / Multi site eZpublish?

Multi site eZpublish?

Author Message

Perry Myklebost

Tuesday 25 November 2008 10:13:14 pm

I keep reading about a core eZ and dozens/hundreds of web sites using it.

I just can't figure out how to do this. Here is the reference I'm looking at and I'm confused:
http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/configuration/access_methods

Thanks for any help.

zurgutt -

Wednesday 26 November 2008 2:19:37 am

If you are talking about ezcore extension then that contribution is in hidden projects section - see http://projects.ez.no/ezcore/ and http://projects.ez.no/ in general.

Be aware that it is not included in ez.no search, nor is it linked to, so you have to know it exists and the url to it to get the new and useful stuff.

Certified eZ developer looking for projects.
zurgutt at gg.ee

André R.

Wednesday 26 November 2008 3:04:04 am

I don't think he is talking about ezcore, but how to setup multi site eZ Publish install.

One way of doing it:
1. Start by creating one in a normal way (using installer and all)
2. Modify it to your needs
3. Make sure there is no db or VarDir settings in settings/override (look over all settings here and move any site specific setting to the siteaccessed used by your site, including admin)
4. dump database, var/<site_name> folder and siteaccesses used (included admin)
5. adding new sites now involves the following:
* create a new db with the db dump
* insert var/<site_name> but with something else for the site name part
* insert the siteaccess copys with new names for the new site
* change the settings in these for the new site (db, VarDir, Sitename and so on)
* change site.ini in settings/override to match the host/uri to the correct siteaccesses

Edit: Assuming multi db setup here.

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

Perry Myklebost

Wednesday 26 November 2008 7:46:51 am

I now use Drupal 6.x and adding a new web site to the core logic takes 30 seconds. I have 100+ web sites using a single Drupal install. They have unique web site names and never interfere with each other. I can have just 1 mySQL and each web site uses a unique prefix.

Can eZ do something similar?

Thanks,

André R.

Wednesday 26 November 2008 8:15:40 am

Not at the moment, there are a extension in the works that allows this.
Currently it supports multi db setup (the reason its not out yet, is that the code is to customer specific at the moment), and it might also support single db setup* when done.

* Multi site single db setup in eZ Publish does not work by using db table prefix like drupal does. The sites actually share content, using the role system to separate who has access to what.

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

zurgutt -

Wednesday 26 November 2008 2:07:10 pm

Yes, shared db multi setup is possible and works well but needs to be set up manually and small changes to half a dozen templates or so. Should not be attempted without good knowledge of ezp.

Certified eZ developer looking for projects.
zurgutt at gg.ee

Christoph von Siebenthal

Wednesday 03 December 2008 1:39:46 am

Thank you André

I overlooked de var part!

And yes: A wizard to do this would be great!

At least for the multi db part

Wy do you want to use one db. It would be just more trouble to separate the sites when the need for it eventualy comes up.

Greg Lakomy

Thursday 04 December 2008 8:16:05 am

I was able to create a new site access with a different host and still use the same admin tools to control two sites. I've created and assigned a new section name to my object (the one that will be a homepage of a new site). Then, using overrides, I could use different page_layout for the new site.

Developer
http://www.duoconsulting.com

André R.

Friday 05 December 2008 12:47:09 am

Why do you want to use one db. It would be just more trouble to separate the sites when the need for it eventually comes up.

If the sites are related, as in one company have several sites and they share content across sites (node location), media library, tight integrations like fetching calendar events from all the sites and administration of all sites in one place. But yes, if you suspect they will be broken up within a short amount of time, then this is not for you. (data_import would of course help you a lot, but it should be tweaked a bit more for ez export / ez import scenarios)

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 03:01:28
Script start
Timing: Jan 18 2025 03:01:28
Module start 'content'
Timing: Jan 18 2025 03:01:28
Module end 'content'
Timing: Jan 18 2025 03:01:28
Script end

Main resources:

Total runtime0.7788 sec
Peak memory usage4,096.0000 KB
Database Queries218

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.8281180.8359
Module start 'content' 0.00540.6402 769.6641733.2656
Module end 'content' 0.64560.1331 1,502.9297344.4688
Script end 0.7788  1,847.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5090210.0002
Check MTime0.00140.1761210.0001
Mysql Total
Database connection0.00090.120110.0009
Mysqli_queries0.688488.38302180.0032
Looping result0.00230.29932160.0000
Template Total0.751996.520.3760
Template load0.00220.281720.0011
Template processing0.749796.258820.3748
Template load and register function0.00030.032910.0003
states
state_id_array0.00110.143610.0011
state_identifier_array0.00090.118020.0005
Override
Cache load0.00190.2406510.0000
Sytem overhead
Fetch class attribute can translate value0.00180.237460.0003
Fetch class attribute name0.00120.1540120.0001
XML
Image XML parsing0.00220.287660.0004
class_abstraction
Instantiating content class attribute0.00000.0036150.0000
General
dbfile0.00380.4906410.0001
String conversion0.00000.001030.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
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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
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: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs