Forums / Setup & design / how to set up a new site?

how to set up a new site?

Author Message

Erland Flaten

Tuesday 03 July 2007 1:05:21 am

Based on the tutorial and instructions on how to set up a new site on page : http://ez.no/ezpublish/documentation/building_an_ez_publish_site/creating_the_tscm_site

I have problems accessing the previous site – the site the new site settings are based on.

<b>Is there any documentation on how to set up a new site? </b>

I have tried to follow the path as described on the TSCM tutorial. The new site is up and running, I guess, but accessing the old site which the new one is based on gives error. error kernel 20. Module not found.

I guess there are more settings to alter than whats described in TSCM when we want a second or third site in one installation?

- I am using the same database. Is that OK or should there be one database per site.
- The same site url is used in the site.ini.apped.php in siteaccesfolders for the new and old site (bad gutfeeling on this one..)

Erland Flaten
Lilllehammer, Norway

Erland Flaten

Tuesday 03 July 2007 1:30:15 am

Sorry for answering my one questiones, but I found that adding the sites in the override/site.ini.appned.php gave the correct results. Here is the two altered sections of that file.

[SiteSettings]
DefaultAccess=test1plain_site
SiteList
SiteList=test1plain_site

SiteList=plain_site <-- I put this one in
SiteList=plain_site_admin <-- I put this one in

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList
AvailableSiteAccessList=test1plain_site
AvailableSiteAccessList=test1plain_site_admin

AvailableSiteAccessList=plain_site <-- I put this one in
AvailableSiteAccessList=plain_site_admin <-- I put this one in

I would still like to have a official "this is the right way to set up several sites"

This run on OS X 10.4.10 PHP 5.2.2 and mysql

Erland Flaten
Lilllehammer, Norway

André R.

Tuesday 03 July 2007 9:32:30 am

SiteList is an array, so should be like this:
SiteList[]
SiteList[]=first_site
SiteList[]=second_site

also there is a third setting for setting witch site access is related to witch:
[SiteAccessSettings]
RelatedSiteAccessList[]
RelatedSiteAccessList[]=first_site
RelatedSiteAccessList[]=second_site

You can read more about this settings in the doc:
http://ez.no/doc/ez_publish/technical_manual/3_9/reference/configuration_files/site_ini/siteaccesssettings/relatedsiteaccesslist

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Erland Flaten

Tuesday 03 July 2007 11:53:17 am

Looks like both the new and old sites uses the same data. I have made a new database and changed the databasename in site.ini.append.php

The mysql errors from debug are now dense and irritating like the mosqitoswarms in northern Norway! So I have still no second site up and running. Looks like EZPub need some content to start with. The new database is of course empty. I see there are many definitions of settings parameters in the documentation, but cant find any description on how to set up another site on the same ez installation apart from the TSCM-thing which is site setings editiing and not starting a new site.

I would deeply recomend more taskoriented descriptions instead of mostly definitions of parameters.

So how do I set up a new site without using the wizard?

Erland Flaten
Lilllehammer, Norway

Mariano Sokal

Tuesday 03 July 2007 8:44:25 pm

<b>
I would deeply recomend more taskoriented descriptions instead of mostly definitions of parameters.</b>

Absolutely.
I have many joomla/mambo installations... and I am trying to move to ezpublish so I can take advantage of its benefits but it is getting really hard to accomplish some things. Doing a multisite configuration is not easy to understand, at least for the newbies in this software as myself.

A tutorial/howto covering this and other matters would be greatly appreciated.

Best regards,
Mariano

André R.

Wednesday 04 July 2007 1:42:58 am

Howto and Faq has been on the todo list for a couple of years..

When it comes to clean database, you could just make a copy of the one you have, or disable the siteaccess with the working db while setting up the other one.(set site.ini: CheckValidity to true while doing it)
Or use one of the database schema's included, but havn't tested that so wouldn't recommended it personally.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Erland Flaten

Wednesday 04 July 2007 3:51:40 am

Yes, I would try to make a duplicate of the database the setupwiz made during setup of the "plain_site". Then select that new base in those setupfiles.

I would also tryout the mysqlscripts I read about in the manual configuration. The one that prepares a database with the right tables and such.

ok. Thanks for the help so far :) I feel I understand some more now than a couple of weeks ago. I will dive more into ez later. Looks like the rain is comming...means holliday :/

Erland Flaten
Lilllehammer, Norway

eZ debug

Timing: Jan 18 2025 11:02:36
Script start
Timing: Jan 18 2025 11:02:36
Module start 'content'
Timing: Jan 18 2025 11:02:37
Module end 'content'
Timing: Jan 18 2025 11:02:37
Script end

Main resources:

Total runtime0.8284 sec
Peak memory usage4,096.0000 KB
Database Queries208

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.7109180.8359
Module start 'content' 0.00660.6684 768.5469638.0156
Module end 'content' 0.67490.1532 1,406.5625341.0625
Script end 0.8281  1,747.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4915210.0002
Check MTime0.00150.1767210.0001
Mysql Total
Database connection0.00070.085410.0007
Mysqli_queries0.739689.27482080.0036
Looping result0.00220.27102060.0000
Template Total0.796996.220.3984
Template load0.00240.295320.0012
Template processing0.794495.893820.3972
Template load and register function0.00020.023510.0002
states
state_id_array0.00180.212310.0018
state_identifier_array0.00100.117220.0005
Override
Cache load0.00220.2679630.0000
Sytem overhead
Fetch class attribute can translate value0.00230.274640.0006
Fetch class attribute name0.00110.128480.0001
XML
Image XML parsing0.00110.136840.0003
class_abstraction
Instantiating content class attribute0.00000.002590.0000
General
dbfile0.00310.3704280.0001
String conversion0.00000.001030.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
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
13content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 41
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs