Forums / Setup & design / Need to copy site from one server to another

Need to copy site from one server to another

Author Message

Andy Woods

Tuesday 21 June 2011 1:55:28 am

I've been developing an ez4.4 site on a development server.  It's now ready to be copied across to the production server.

Can you tell me what is the correct process to copy the site across to the new server please?

Is it simply a case of:

  1. install ezpublish on new server
  2. import database from dev server
  3. upload extension folders

Which folder contains the 'Media' files (images, Word docs etc) that I have uploaded to the dev server via the CMS?  Is it the '/var' folder?  Is this the only other folder I need to upload to the new server to ensure that all the content is transferred across?

Thanks,

Andy

Andy Caiger

Tuesday 21 June 2011 2:46:10 am

Yes, you need to copy /var. You also need to copy settings/siteaccess and settings/override.

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com

Donat Fritschy

Tuesday 21 June 2011 3:38:21 am

Actually, you need only to copy /var/storage from the /var directory. The other subdirectories in /var are recreated as needed.

You will also need to check the permissions on the file server. See bin/modfix.sh

Finally, clear all caches in the admin (setup/cache) and recreate the autoloads (setup/extensions).

>>> OOPS! See comment by Marko below. Thanks for the correction. -Donat

http://www.webmanufaktur.ch - Developers united in eZ Publish: http://www.cjw-network.com

Helge Silset

Tuesday 21 June 2011 7:45:23 am

Hi Andy,

ezcopy should be able to handle this. It will create an archive containing your installation and an sql dump on your development server and download it.

If you have permissions to create databases and assign rights on your destination server, use 'download-install'. If not, you can use 'download' and import the database manually.

http://projects.ez.no/ezcopy

The repository on projects.ez.no isn't quite up to date, but it should get the job done.

Hope this helps!

Marko Žmak

Tuesday 21 June 2011 11:38:20 am

"

Actually, you need only to copy /var/storage from the /var directory. The other subdirectories in /var are recreated as needed.

"

That's not really true. You also have to copy this folders:

  • var/<yoursiteaccess>/storage - it's most important, all binary content (images, pdfs, files...) are actualy here
  • var/log and var/<yousiteaccess>log - if you want to keep the logs

Also if you have several siteaccess that don't share the storage folder you will have to copy storage folders for all of them.

Also you should check if you have some extension that creates some permanent files in some other folders than this ones. (which should not happen if the extension is writtten correctly)

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Nicolas Pastorino

Wednesday 22 June 2011 6:14:41 am

Hi Andy, 

I hope these gentlemens' good insight helped you solve your problem. If so, feel free to mark the thread as solved (click the small ticker right on the left of this thread's title).

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Andy Woods

Friday 24 June 2011 2:26:49 am

Thanks guys - I'll let you know how I get on.

Much appreciated,

Andy

eZ debug

Timing: Jan 17 2025 23:38:26
Script start
Timing: Jan 17 2025 23:38:26
Module start 'content'
Timing: Jan 17 2025 23:38:27
Module end 'content'
Timing: Jan 17 2025 23:38:27
Script end

Main resources:

Total runtime1.0139 sec
Peak memory usage4,096.0000 KB
Database Queries215

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 592.5078180.8203
Module start 'content' 0.00410.9143 773.3281758.6797
Module end 'content' 0.91840.0954 1,532.0078341.0547
Script end 1.0138  1,873.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3861210.0002
Check MTime0.00150.1433210.0001
Mysql Total
Database connection0.00050.046310.0005
Mysqli_queries0.934292.14422150.0043
Looping result0.00170.17262130.0000
Template Total0.990897.720.4954
Template load0.00280.279120.0014
Template processing0.987997.438320.4940
Template load and register function0.00020.019510.0002
states
state_id_array0.00020.021410.0002
state_identifier_array0.00090.083920.0004
Override
Cache load0.00240.2403520.0000
Sytem overhead
Fetch class attribute can translate value0.00130.131170.0002
Fetch class attribute name0.00100.1002110.0001
XML
Image XML parsing0.00320.320170.0005
class_abstraction
Instantiating content class attribute0.00000.0018110.0000
General
dbfile0.00330.3244470.0001
String conversion0.00000.000530.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
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ol.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ol.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
2content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 33
 Number of unique templates used: 11

Time used to render debug report: 0.0002 secs