Forums / Developer / Multisite Move from one server to other

Multisite Move from one server to other

Author Message

Sunil Mulay

Monday 15 March 2010 4:00:46 am

Hello Friends,
I have created a new multiple site using EZ publish 4.2.0
my site structure is something similar to
first site
design/Site1
extension/site1ext
siteaccess/plain_site
siteaccess/plain_site_admin
Database : site1db
second site
design/Site2
extension/site2ext
siteaccess/new_plain_site
siteaccess/new_plain_site_admin
Database : site2db
now I wan't 2 move site Site1{plain_site} to another server.
I know how to move site but in case where there is only single site in an eZ installation there i used to move whole installation directory and db after clearing cache.
But i have no idea how to move single site from multiple sites... can any one help me in this please...please .....

Thank you,
Sunil.

Hakim Bouras

Monday 15 March 2010 6:47:44 am

Hi Sunil,

You can copy the whole ezp folder to your new server, and copy the database.

Then you will have to edit the file : site.ini.append.php in settings/override in order to specify which site you want to keep on each server. You should update the following lists of settings (by removing the option that belongs to a site that you do not want anymore).

[SiteSettings]
--> SiteList[]
[SiteAccessSettings]
--> AvailableSiteAccessList[]
--> HostMatchMapItems[]

You can clear your cache and then test to verify that everything is working fine.

Then, you can remove the files that are relative to a site that is not anymore on the server :

  • the files you have listed
  • the var/<siteN> files (depending if they are specific to your site - which you can see by looking your site.ini.append.php in settings/siteaccess/<siteN> )

Hope that help,

Hakim Bouras
PRISMALOG - Creation de site Internet

Sunil Mulay

Monday 15 March 2010 10:25:23 pm

HI Hakim Bouras,

Thanks for replying ....
I got what you said but, my problem is that i need to move 1 site from my server and ez installation to other server where there is eZ installed already and it already contains some ez sites.
In this case how should i proceed (is this possible .? ).can u please guide me in this ..?
Thank you,
Sunil Mulay

paul bolger

Monday 15 March 2010 11:16:29 pm

Sunil, It would depend on whether the sites on the new server are sharing the same database, and whether you want the site you are moving to have access to their data.

If not it's easy, just add and activate the siteaccess and restore its database to the local database server.

If you want to merge databases... I'm not sure. Maybe someone else might have some ideas. it's undoubtedly possible, although you would need to be careful (use a testing instance) and make sure both instances are running exactly the same version of eZ Publish.

Paul Bolger

Hakim Bouras

Tuesday 16 March 2010 1:17:53 am

Hi Sunil,

To move the Site2 to another server you will have to :

- copy the files to the new server (in the existing ez folder):

  • design/Site2
  • extension/site2ext
  • siteaccess/new_plain_site
  • siteaccess/new_plain_site_admin
  • var/Site2

- restore your database

- update your settings in settings/siteaccess/Site2/site.ini.append.php

  • database connection if it changes
  • var folder if it changes

- verify the other extensions that was used, in the previous server and make sure they are available on the new server (if they are used by your site)

  • globally in the ez installation in settings/override/site.ini.append.php
  • locally, only for Site 2 in settings/siteaccess/Site2/site.ini.append.php

- declare Site 2 in your new server by updating settings/override/site.ini.append.php

[SiteSettings]
--> SiteList[]
[SiteAccessSettings]
--> AvailableSiteAccessList[]
--> HostMatchMapItems[]

- clear the cache folder var/Site2/cache

Hopefully, it should work after that.

Hakim

Sunil Mulay

Tuesday 16 March 2010 2:00:21 am

HI Friends

I tried this and succeed in doing this. .:) :)

all thanks to u guys..
Hakim u have explained this in the best way any one can explain .
will let you know if i face any further problem...

Thank you,
Sunil

eZ debug

Timing: Jan 17 2025 22:49:14
Script start
Timing: Jan 17 2025 22:49:14
Module start 'content'
Timing: Jan 17 2025 22:49:14
Module end 'content'
Timing: Jan 17 2025 22:49:14
Script end

Main resources:

Total runtime0.8413 sec
Peak memory usage4,096.0000 KB
Database Queries206

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.2578180.8281
Module start 'content' 0.00670.7307 770.0859637.6172
Module end 'content' 0.73750.1038 1,407.7031341.0547
Script end 0.8413  1,748.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5247210.0002
Check MTime0.00150.1743210.0001
Mysql Total
Database connection0.00080.098410.0008
Mysqli_queries0.747088.79102060.0036
Looping result0.00200.23602040.0000
Template Total0.815797.020.4079
Template load0.00270.322920.0014
Template processing0.813096.633120.4065
Template load and register function0.00030.037010.0003
states
state_id_array0.00070.082810.0007
state_identifier_array0.00070.081320.0003
Override
Cache load0.00240.2911930.0000
Sytem overhead
Fetch class attribute can translate value0.00110.127440.0003
Fetch class attribute name0.00110.133780.0001
XML
Image XML parsing0.00220.257040.0005
class_abstraction
Instantiating content class attribute0.00000.002690.0000
General
dbfile0.00280.3385330.0001
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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
4content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 49
 Number of unique templates used: 10

Time used to render debug report: 0.0001 secs