Forums / Install & configuration / Problems with multiple site configuration

Problems with multiple site configuration

Author Message

Sukhbir Khera

Wednesday 27 July 2005 5:11:03 am

Hi all,
First of all thanks to Mr./Mrs./Miss Lukasz Serwatka for the help.
Somehow I designed three sites, but there are some problems with that.
<b>1.</b> When I change the settings of one site in it's admin, it gets reflected in all the three sites.
<b>2.</b> How to configure the database of two new sites I created manually.

<b>what I</b> have done is just copied the folders of first site and renamed them, and the files containing its refrences to the new one.
Please help .
Thanks.
Sukhbir

Frederik Holljen

Wednesday 27 July 2005 5:53:48 am

Hi,

The settings are reflected everywhere because you have chosen to store them as global override settings. Instead you should choose to store them in the specific override settings for each administration siteaccess.

To be specific the global overrides live here:
/settings/override/*.ini
and the siteaccess overrides here:
/settings/siteaccess/[siteaccessname]/*.ini

Sukhbir Khera

Thursday 28 July 2005 12:53:07 am

Hi, Thanks for the reply, but can you please be specific what's needed to be changed in which files and in which directory. I have tried everything i can, but in vain. will be realy nice, if anybody can assist me. Once again, thanks.
Sukhbir.

Luc Chase

Thursday 28 July 2005 5:38:45 am

Sukhbir,
Not sure how you got to this point.... did you re-run the wizard? Perhaps that would be an easy way for you to progress (set CheckValidity=true in site.ini.append.php). But remember to first ensure that there is a separate database available for each siteAccess.
In over-simplified terms each siteAccess defines how the site looks and each database what it contains.
Remember that content is stored in a database. Which database?? This is what you have to tell each siteAccess.
The answer is placed in the site.ini[.append][.php] file of the particular siteAccess.

The site.ini in the overrides directory is shared by all siteaccess and overrides any corresponding site.ini settings contained in /siteaccess/<siteAccessName>/site.ini...
The ../settings/overrides directory is for .ini files to be shared by all siteaccess; they override all others.

There it will find the name of the database, which server, login name, etc.
So, (normally) you need a separate database for each site having separate content; and you need separate site.ini files to specify how to connect to the correct database.
NB. The admin interface (which is just another siteAccess, but specially designed to manage the content) needs to always be the second siteAccess which has a login to the same database.
e.g.
[DatabaseSettings]
Server=localhost
User=root
Password=xxxx
Database=sitename

The Web Application Service Provider

Sukhbir Khera

Friday 29 July 2005 1:25:39 am

Hi all,
Thanks to all and special thanks to Mr Luc Chase for the help. Now everything is, it seems, is working fine. One more thing, the original site is working fine, but the newly creted sites are asking for user name and password, any help on that. Thanks for the help.
Sukhbir

Luc Chase

Friday 29 July 2005 6:46:38 am

Sukhbir,
go to /settings/siteaccess/<yourSiteAccess>/site.in[.append][.php] and look for 'RequireUserLogin='
and set it to RequireUserLogin=false

The Web Application Service Provider

Leomar Soares de Almeida

Friday 29 July 2005 8:32:24 am

<b>Gostaria de saber se alguem poderia me explicar a origem de ste erro no setup wizard.</b>

Creating sites

The setup wizard was not able to complete the creation of your selected sites.

The following errors were detected:

    * EZSW-051Could not install addon package named contact_us
    * EZSW-040Failed to initialize site package corporate

If you think you have fixed the errors you can try and click the "Retry" button.

eZ debug

Timing: Jan 19 2025 13:47:11
Script start
Timing: Jan 19 2025 13:47:11
Module start 'content'
Timing: Jan 19 2025 13:47:12
Module end 'content'
Timing: Jan 19 2025 13:47:13
Script end

Main resources:

Total runtime1.3197 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 589.1172180.8047
Module start 'content' 0.00781.1684 769.9219656.9766
Module end 'content' 1.17620.1434 1,426.8984341.0469
Script end 1.3196  1,767.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3266210.0002
Check MTime0.00170.1292210.0001
Mysql Total
Database connection0.00150.110010.0015
Mysqli_queries1.227192.98892100.0058
Looping result0.00210.16132080.0000
Template Total1.284797.420.6424
Template load0.00350.262020.0017
Template processing1.281397.090920.6406
Template load and register function0.00020.016710.0002
states
state_id_array0.00160.117710.0016
state_identifier_array0.00180.135720.0009
Override
Cache load0.00300.2259510.0001
Sytem overhead
Fetch class attribute can translate value0.00120.094150.0002
Fetch class attribute name0.00110.082580.0001
XML
Image XML parsing0.00130.099450.0003
class_abstraction
Instantiating content class attribute0.00000.001380.0000
General
dbfile0.00760.5753270.0003
String conversion0.00000.000730.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs