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

eZ debug

Timing: Jan 30 2025 00:45:14
Script start
Timing: Jan 30 2025 00:45:14
Module start 'content'
Timing: Jan 30 2025 00:45:14
Module end 'content'
Timing: Jan 30 2025 00:45:14
Script end

Main resources:

Total runtime0.1512 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.0071 588.0547180.8203
Module start 'content' 0.00710.0065 768.8750102.0547
Module end 'content' 0.01360.1375 870.9297533.3281
Script end 0.1511  1,404.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00332.2049200.0002
Check MTime0.00130.8691200.0001
Mysql Total
Database connection0.00120.776310.0012
Mysqli_queries0.103868.62451410.0007
Looping result0.00120.76671390.0000
Template Total0.137290.710.1372
Template load0.00080.550210.0008
Template processing0.136490.170810.1364
Override
Cache load0.00060.377610.0006
Sytem overhead
Fetch class attribute can translate value0.00090.599110.0009
XML
Image XML parsing0.00020.144710.0002
General
dbfile0.00865.6756200.0004
String conversion0.00000.003830.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