Hosting Multiple sites (again)

Author Message

Radic Radovan

Wednesday 04 January 2006 7:02:16 am

Hello,

I have found this post from the year 2001 http://ez.no/products/ez_publish_cms/info/ez_publish_2_2/forum/general/hosting_multiple_sites but it didnt get relevant answer. So, we have one server and eZ installed on it. Is there possibility that we have more than one site on that server? Provider allows only one database on that server. So, what do i need to have more than one site with one eZ installation and one database, if this is possible at all.
<b>It would be good if someone has some link with comprehensive explanation about ez, multiple sites, multiple languages</b>, since i badly failed to get one already.

Thanks,
Radovan

Bertrand Dunogier

Wednesday 04 January 2006 7:35:33 am

First, I really, really don't recommend using shared hosting that only offers you one database. You're limiting your possibilities with the CMS with such a hosting solution, and make maintenance harder. There are lots of very reliable hosting services who offer more than one database.

That being said, you should be able to do something ;)

First, you need to get really familiar with the concept of siteaccess. Each site you are gonna host will require one separate siteaccess. So will the admin interface for each site if you require separate ones.

A siteaccess defines everything there is to know about each website. Database infos, files storage location, site name, access method... What you basically have to do is configure each siteaccess to use the same DB, but tweak the admin interface so that each site can be managed separately. I don't have the relevant settings at hand, but getting it to basically work is not hard.

After that, you just have to use a separate design for each site, and you should be okay. But beware that you will have to set more infos in each siteaccess's setting files since your usage of global overrides is gonna be limited.

I suggest that you use the same storage folder for each site, or if you do, that you don't use a general admin. If you do that, that admin interface won't know where the files are stored, and you're gonna end up with messed up content.

I hope it helps a little.

Radic Radovan

Wednesday 04 January 2006 7:57:30 am

Thanks for the help Bertrand,

I suppose i did not understand all about siteaccess. I have been using it only for one site, and i had site and admin siteaccess. Another reason i am confused is that i have been using siteaccess for multiple languages and i had directory structure in settings/siteaccess

admin
en
sr

directories. And i am accessing english section via site.com/index.php/en and admin site.com/index.php/sr.
For multiple sites, i suppose i should have then 6 directories

admin1
admin2
en1
en2
sr1
sr2

and i dont have a clue how could i connect www.site1.com and www.site2.com with my siteaccesses. Via virtual host or what? I didnt know i was so confused until now!

Radovan

Bertrand Dunogier

Wednesday 04 January 2006 11:07:42 am

Yes, with hoptmatch in override/site.ini.append

HostMatch[]=www.site1.com;site1
HostMatch[]=admin.site1.com;site1admin
HostMatch[]=www.site2.com;site2
HostMatch[]=admin.site2.com;site2admin

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 18 2025 15:00:32
Script start
Timing: Jan 18 2025 15:00:32
Module start 'layout'
Timing: Jan 18 2025 15:00:32
Module start 'content'
Timing: Jan 18 2025 15:00:33
Module end 'content'
Timing: Jan 18 2025 15:00:33
Script end

Main resources:

Total runtime0.8221 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.1641152.6406
Module start 'layout' 0.00460.0022 741.804739.4766
Module start 'content' 0.00680.8137 781.2813490.0156
Module end 'content' 0.82050.0015 1,271.296912.1484
Script end 0.8220  1,283.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4084160.0002
Check MTime0.00140.1718160.0001
Mysql Total
Database connection0.00050.060710.0005
Mysqli_queries0.775294.2944600.0129
Looping result0.00050.0626580.0000
Template Total0.794396.620.3971
Template load0.00240.294020.0012
Template processing0.791896.320520.3959
Template load and register function0.00020.024210.0002
states
state_id_array0.00090.113810.0009
state_identifier_array0.00100.124520.0005
Override
Cache load0.00200.2466350.0001
Sytem overhead
Fetch class attribute can translate value0.00050.062920.0003
Fetch class attribute name0.00100.126740.0003
XML
Image XML parsing0.00030.041120.0002
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00070.0806100.0001
String conversion0.00000.000640.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs