1

I have one plone instance in directory A. Then I copied the instance to directory B. Today I find that the running plone located in B even I run "sudo ./bin/plonectl start" in A. I have two problem to resolve:

  1. How could I start plone instance in A ?
  2. How could I start them both so I can combine contents in A and B?

Debian 6, Plone 4.1.4

user9517
  • 114,104
  • 20
  • 206
  • 289
Hugo
  • 13
  • 2
  • Are these Unified Installer setups? Did you re-run the buildout to re-generate the paths? Did you adjust the port on which the second server runs? Do you have a front-end server (apache, nginx, varnish, haproxy loadbalancer, etc.)? – Martijn Pieters Mar 07 '13 at 10:04

1 Answers1

3

My suspicion is that you never changed the port assignments in the configurations. Server B was probably left running; your attempts to start Server A failed because it couldn't get the port already held by B.

So, first get both running by editing the buildout.cfg for one of them to specify a different http-address for the zope instance.

Once both are running, you may combine them so that they appear at different paths in the same web host by using rewrite rules in your reverse proxy (probably apache or nginx).

If you want to combine them into the same Zope database by exporting one site from it's original zope server and importing into the target server. They will still be different Plone instances, though in the same database. If you want to combine them into the same Plone instance, then export content rather than the whole site, and import into the target Plone site.

Export/import is done through the Zope Management Interface. The two Plone configurations must match exactly for this to work. Expect to have to reindex the Plone content after any export/import.