Forums / Install & configuration / Single or Multiple eZ

Single or Multiple eZ

Author Message

Neeraj Poudyal

Wednesday 05 April 2006 2:14:44 am

I want to know whether there is significant gain from having a single installation of ez for multiple sites. I don't think so other than I don't have to install ez many times if I use single installation for multiple sites plus the disk space. What do you recommend guys, since I'm using multiple databases and all sites are very different from each should I just install one ez for every site?

Daniele Gobbetti

Wednesday 05 April 2006 2:53:34 am

As soon as you have:
-different INIs
-different DB
-different storage
i guess that there will be no problem at all in having a single istance of ez running multiple sites. This is actually what I'm having on my dev box (while in production every site is running on a different installation, because they're on different servers/shared hosts).

The only issue that comes to my mind is that as soon as you upgrade to a new release you have to check whether each and every site is having any issue, while with separate installation you can upgrade and check one site at a time.

Just my 2 cents anyway.

Regards,
DAniele

Bertrand Dunogier

Wednesday 05 April 2006 2:57:17 am

As Daniele said, there's nothing really wrong in having one installation of eZ for multiple sites as long as everything is separated.

But as far as I'm concerned, I'm not a big fan of that method... if disk space is not an issue, you should use one installation per project. The main reason I see is upgrade... indeed if you have one install, you only have to upgrade once, but everything has to be tested at the same time, and if you have applied patches to your installation (we don't recommend that, but it happens...), it can be a problem.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Neeraj Poudyal

Wednesday 05 April 2006 3:08:19 am

Well I think I've found (or made up) few advantages of multiple installations of ez.

1. When you have to move a site to another server
2. Grant access to ez code of particular site to client (otherwise they ask for code and you have to give access to the common code )
3. My hosting server which I recently checked and it looks like windows (i.e. it has foldersnamed mydomainname.com for each domain instead of /home/usr/public_html) , and looks like I won't have a root access to play around with apache . Also I didnot find any addon domain options in my hosting which means I have to use redirection which is slow.

After discussions I think I'll go for single installations.

Daniele Gobbetti

Wednesday 05 April 2006 3:21:50 am

Another reason for separate installations: extensions are indipendent for each site.

Anyway I'm pretty confortable in developing on a single installation and then moving to separate as stated before.

Regards,
DAniele

Rubén Valenzuela

Monday 10 April 2006 10:35:39 am

Hi,

Just to make shure caught the idea. What you're suggesting is:

1.- On the same machine -. running APACHE, Mysql intall as many copies of EZ as sites I want to create.
2.- Configure each one separetely - it's own EZDatabase (Ez1, EZ2, etc), and go thru EZ Setup process.

Cons: I'll use some extra space
Pros: Bette control on a one on one upgrade process.

If I understood right - patches shouln't be applied on the same development installation? How then do you apply ugrades?

My best regards,

Arvychile

Paulo Almeida

Monday 10 April 2006 10:59:38 am

I use one instalation for multiple sites, and i like it that way, except i can't setup something like this:

_domain_ / _siteaccess_

www.site1.com/pt
www.site1.com/en
www.site1.com/es

www.site2.com/pt
www.site2.com/fr

www.site3.com/it

I have to use
www.site1.com -> siteaccess portuguese of site 1
en.site1.com -> siteaccess english of site 1
es.site1.com -> siteaccess spanish of site 1

www.site2.com -> siteaccess portugese of site 2
fr.site2.com -> siteaccess french of site 1

because of this situation, i am really thinking in move to multiple instalations (upgrade will be more dificult)

PACPI.COM Internet Consulting
http://pacpi.com

Matthew Carroll

Wednesday 12 April 2006 8:59:13 am

My situation is exactly the same as Paulo's regarding multiple languages. Actually this is a big flaw in ezpublish's siteaccess selection for me. It would be great to be able to do 'mapping' for url-based siteaccesses in combination with the host, e.g.

example.com/en --> example-com-en
example.com/fr --> example-com-fr
example.org/en --> example-org-en
example.org/fr --> example-org-fr

and so on.

anyway, regarding the initial question - this limitation aside we are happily running 20 siteaccesses for 5 different sites from one central ezpublish install, with more coming. using sym-links for design and settings it is possible to allow control of each site on an individual basis, and we have different extension settings for different sites using [ActiveAccessExtensions] on a per-access basis. we're also running from svn which makes upgrading all of the sites at the same time an easy task - this was the main reason for choosing a centralised install.

Matthew

http://carroll.org.uk

Rubén Valenzuela

Wednesday 12 April 2006 9:22:34 am

Mathew,

Could you please elaborate on your installation. I'm rather newbie on EZ so many of the things yuo mention I just don't know where to look at.

Regards,

Ruben

eZ debug

Timing: Jan 18 2025 10:53:15
Script start
Timing: Jan 18 2025 10:53:15
Module start 'content'
Timing: Jan 18 2025 10:53:16
Module end 'content'
Timing: Jan 18 2025 10:53:16
Script end

Main resources:

Total runtime1.5837 sec
Peak memory usage4,096.0000 KB
Database Queries220

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.7266180.8359
Module start 'content' 0.00621.4195 768.5625774.4219
Module end 'content' 1.42570.1579 1,542.9844344.4688
Script end 1.5836  1,887.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.2655210.0002
Check MTime0.00150.0943210.0001
Mysql Total
Database connection0.00090.055510.0009
Mysqli_queries1.470792.86742200.0067
Looping result0.00270.16902180.0000
Template Total1.542097.420.7710
Template load0.00200.126120.0010
Template processing1.540097.237720.7700
Template load and register function0.00010.008210.0001
states
state_id_array0.00290.185310.0029
state_identifier_array0.00210.133920.0011
Override
Cache load0.00180.1157710.0000
Sytem overhead
Fetch class attribute can translate value0.00210.133570.0003
Fetch class attribute name0.00130.0823120.0001
XML
Image XML parsing0.01280.806270.0018
class_abstraction
Instantiating content class attribute0.00000.0012120.0000
General
dbfile0.01921.2144390.0005
String conversion0.00000.000430.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
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
11content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 44
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs