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.