Forums / Install & configuration / SOLVED : Troubles with multisite setup

SOLVED : Troubles with multisite setup

Author Message

Denis Marcaux

Thursday 05 March 2009 6:09:36 am

Hello,

This is a repost from the french-speaking forum. Sorry for the duplicate, but answers
were scarce, so I am seeking a wider audience.

My quest is to seek multi-site setup with ezPublish: several sites hosted by the same
installation of ezPublish.

The install process produced a siteaccess with the following directories:
ezwebin_site
ezwebin_site_admin
fre

I created a new directory named "nouveau" and populated it with files copied from "fre"

Then I modified the files:
ez/settings/override/site.ini.append.php
ez/settings/siteaccess/nouveau/site.ini.append.php
to add this:
SiteListe[]=nouveau
AvailableSiteAccessListe[]=nouveau

The "nouveau" site can be reached at this URL:
http://www.example.net/ezpublish/index.php/nouveau

The only problem remaining is that that new site can only be accessed after login, which
is a bit frustrating since I have this in ez/settings/site.ini:
RequireUserLogin=false
Of course, ez/settings/siteaccess/nouveau/site.ini.append.php does not contains any
RequireUserLogin directive. Adding RequireUserLogin=false there does not help.

Each time I access the "nouveau" web site, I have this error in the logs:
Error occured using URI: /ezpublish/index.html/nouveau

TIA

Jean-Yves Zinsou

Thursday 05 March 2009 6:17:49 am

May sound stupid but what do you have using
/ezpublish/index.php/nouveau

?

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Denis Marcaux

Thursday 05 March 2009 6:49:12 am

Hello,

If I am not logged in I get the following message above the login screen
Kernel(1) Error
Access Denied
Error ocurred using URI: /ez/index.php/nouveau/ in the debug message

If I am logged in, everything is ok.

Jean-Yves Zinsou

Thursday 05 March 2009 7:12:44 am

Bonjour,

go to the admin interface.
Open the user accounts tab
On the left click roles and policies
Edit anonymous role
click edit
click new policy
select module "user"
click "grant access to one function"
select function login
click "grant limited access"
select any (to grant access to all siteaccess) or nouveau (only to grand access to nouveau)
And then click ok and so on.

Tell us if it works better now

;-)

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Yannick Komotir

Thursday 05 March 2009 7:23:20 am

hello,

not

     SiteListe[]=nouveau
     AvailableSiteAccessListe[]=nouveau
 

but

     SiteList[]=nouveau
     AvailableSiteAccessList[]=nouveau
 

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

Denis Marcaux

Thursday 05 March 2009 7:25:35 am

Jean-Yves Zinsou =>

It works !!

Is this documented? Where, if it is?

Thank you very much

ps : merci beaucoup ;)

Yannick =>

It was a typo

Jean-Yves Zinsou

Thursday 05 March 2009 7:32:50 am

Well i do not know if it is documented but i learned here, at the 7th comment ;-)

http://ez.no/ezpublish/documentation/building_an_ez_publish_site/testing_the_interfaces

Glad to be of any help ...

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr