Forums / General / Mutliple sites on one installation

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

eZ debug

Timing: Jan 18 2025 04:11:01
Script start
Timing: Jan 18 2025 04:11:01
Module start 'content'
Timing: Jan 18 2025 04:11:01
Module end 'content'
Timing: Jan 18 2025 04:11:01
Script end

Main resources:

Total runtime0.2403 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.7109180.8359
Module start 'content' 0.00620.0047 768.5469101.9766
Module end 'content' 0.01090.2293 870.5234531.2969
Script end 0.2402  1,401.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00371.5255200.0002
Check MTime0.00150.6109200.0001
Mysql Total
Database connection0.00080.316310.0008
Mysqli_queries0.187878.14551410.0013
Looping result0.00190.79281390.0000
Template Total0.229095.310.2290
Template load0.00100.397510.0010
Template processing0.228094.896410.2280
Override
Cache load0.00070.293010.0007
Sytem overhead
Fetch class attribute can translate value0.00080.352510.0008
XML
Image XML parsing0.00030.135710.0003
General
dbfile0.00251.0278200.0001
String conversion0.00000.002130.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs