Forums / Install & configuration / multi-site configuration

multi-site configuration

Author Message

Michael Zielinski

Tuesday 13 June 2006 3:54:59 am

Hi,
we are running ezPublish on our webserver and currently there is one site (www.agrsci.dk) that uses it.
I have been asked to add another site. I have searched through the docs and the forum, but some questions remain unanswered:

1. Both sites should run their own db. How do I create a new db?
2. Both sites should have their own layout. Do I simply add the new site(s) with HostMatchMapItem and create site.ini's in the corresponding folders and create corresponding design folders?

Thanks

Michael

Matthew Carroll

Sunday 18 June 2006 3:15:20 pm

1. It's as if you were doing a manual installation: http://ez.no/doc/ez_publish/technical_manual/3_8/installation/manual_installation/manual_configuration_of_ez_publish

2. You have the right idea. You need to separate out three things: the design, var, and siteaccess files. For example:

design/site1/...
design/site2/...

var/site1/...
var/site2/...

settings/siteaccess/site1_user/...
settings/siteaccess/site1_admin/...
settings/siteaccess/site2_user/...
settings/siteaccess/site2_admin/...

...with all the corresponding settings to reference those directories in your site.ini.append.php files

Notes:

- If you are already using the main /var directory for your first site, it should still work fine using var/site2 for your second site

- depending on how many sites you are setting up it can be worth sym-linking out those directories to another location for each site, to facilitate easier upgrades.

- in the site.ini.append.php, it's a good idea to set this array for each siteaccess:

AvailableSiteAccessList[]
AvailableSiteAccessList[]=site1_user
AvailableSiteAccessList[]=site1_admin

...that means other siteaccesses don't appear in, for example, the debug settings dropdown in your admin site.

Good luck, and remember to back everything up first just in case!
Matthew

http://carroll.org.uk