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.