Mutliple sites on one installation

Author Message

cousin mosquito

Tuesday 31 March 2009 10:11:36 pm

I have a pretty basic question to which I have not found an answer so far.

Does Ezpub support multiple sites on the one installation ?
They would need to have completely different looks.

I do NOT want to run them live outside of our firewall.
I want to eventually deploy static content.

If this is possible can you point me to the relevant documentation.
All I can find so far is info on changing exisiting sites by editing their templates or css.

Thanks in advance
Jeff

PS. I spent many days on this to no avail.
I am not sure if anyone else was successful with it.
Possibly barking down the wrong trail, as it dosent mention multiple sites anywhere....
http://ezpedia.org/en/ez/overriding_the_ez_web_interface_ezwebin_with_custom_designs

Asking the dumb questions for your benefit

Guillaume Marty

Wednesday 01 April 2009 2:12:11 am

Hi Jeff,

Yes, eZPublish can support multiple sites on a same install. These sites can even use a different Database and different designs.

A good starting point to understand the concept of site accesses:

http://ez.no/developer/articles/an_introduction_to_ez_publish_concepts/siteaccesses

I hope this can help.

Cheers

cousin mosquito

Wednesday 01 April 2009 2:07:13 pm

>>Hi Jeff,
>>Yes, eZPublish can support multiple sites on a same install. These sites can even use a >>different Database and different designs.
>>A good starting point to understand the concept of site accesses:
>>http://ez.no/developer/articles/a..._to_ez_publish_concepts/siteaccesses
>>I hope this can help.
>>Cheers

Thanks, I have read all of that many times and set up another design by copying and renaming the existing design and site_access and editing the ini files.

While I can log into the new "site_admin" I cant access the new "user_site", I have to log into it.

Regardless of which login I use, the changes I make happen to all data.

Also, editing the NEW design's css changes the look of the OLD design.

I guess I need to find out how to use mutliple databases.
Can you point me in the direction for documentation on that?

I suspect I am not the first person wanting to host more than one site on an installation.

Thanks
jeff

Asking the dumb questions for your benefit

Gabriel Finkelstein

Thursday 16 April 2009 8:59:59 am

You have to edit (or create) the site.ini.append.php file on both siteaccesses. You have to set different databases and which design each siteaccess should use.

[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=HOST
User=USER
Password=PASS
Database=DATABASE

[DesignSettings]
SiteDesign=DESIGN_FOLDER

cousin mosquito

Thursday 16 April 2009 9:57:53 pm

[DatabaseSettings]

DatabaseImplementation=ezmysql
Server=HOST
User=USER
Password=PASS
Database=DATABASE
[DesignSettings]
SiteDesign=DESIGN_FOLDER

Thanks Gabrielle.

It works !
I will write down some documentation on this, even if its only to stop other people wasting so much time.

I just need to be able to navigate to my new 'site_access' via my browser now. (Not the admin). Currently I have to log in. I have the details in all the ini files, but it doesnt show up when I go to enable it in the User Accounts tab.

I will keep trawling the forums.
Thanks again
Jeff

Asking the dumb questions for your benefit

Carlos Revillo

Thursday 16 April 2009 11:42:28 pm

once you have created your new siteacces, you will need to go to role and policies options and add a new policy por anonymous login. add a policy for user / login and your new siteaccess.

regards.

cousin mosquito

Wednesday 22 April 2009 4:48:23 pm

>once you have created your new siteacces, you will need to go to role
>and policies options and add a new policy por anonymous login.
>add a policy for user / login and your new siteaccess.
>regards.

Thanks Carlos, that worked brilliantly. I was confused, because as you said I had to add a policy for user / login.... which does not make sense to a newbie, as its a non-login task I am trying to do. I just wanted to browse the page in a web browser. Anyway, it had the desired effect.

Now I just need to figure out how to override the CSS and TPLs on a site_access by site_access basis.

Both sites need to have their own look.
Back to the documentation!

thanks
jeff

Asking the dumb questions for your benefit

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

Main resources:

Total runtime0.6448 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.9141152.6250
Module start 'layout' 0.00660.0030 740.539139.4453
Module start 'content' 0.00950.6337 779.9844672.9063
Module end 'content' 0.64320.0015 1,452.890620.1563
Script end 0.6447  1,473.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5195160.0002
Check MTime0.00140.2104160.0001
Mysql Total
Database connection0.00090.136510.0009
Mysqli_queries0.562187.1715730.0077
Looping result0.00080.1313710.0000
Template Total0.608394.320.3041
Template load0.00270.418820.0014
Template processing0.605593.913020.3028
Template load and register function0.00010.016010.0001
states
state_id_array0.00150.238710.0015
state_identifier_array0.00080.117320.0004
Override
Cache load0.00220.3420710.0000
Sytem overhead
Fetch class attribute can translate value0.00090.139840.0002
Fetch class attribute name0.00130.200990.0001
XML
Image XML parsing0.00150.228640.0004
class_abstraction
Instantiating content class attribute0.00000.0040120.0000
General
dbfile0.00210.3233220.0001
String conversion0.00000.001340.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/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
13content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 48
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs