You are not logged in Log in Join
You are here: Home » Members » Zope Stuff » Upgrading a Zope Installation

Log in
Name

Password

 

Upgrading a Zope Installation

Upgrading a Zope Installation

This can be relatively painless, but beware of item #5!

This assumes that you've downloaded a new binary distribution. If you've got a source distribution, the only real difference is that the Python files you'll have installed

Make sure you start the Zope distribution up as the user that owns the var directory, otherwise you'll get errors mentioning Z2.pid, ie

Traceback (innermost last):
  File "/usr/local/src/Zope-2.0.0b5-src/z2.py", line 494, in ?
    pf = open(PID_FILE, 'w')
IOError: [Errno 13] Permission denied:
'/usr/local/src/Zope-2.0.0b5-src/var/Z2.pid'
  1. copy all your .tar and .tgz files that you've accumulated into the top-level of the new Zope distribution.
  2. untar and install all of them (tar zxf or tar xf for .gz and .tar extensions respectively). Some of them may need to be compiled (such as the ZMySQL distribution)
  3. create an Extensions directory (and while you're at it, make an import one too)
  4. copy all the files in your old Extensions directory into the new one, ie for unix; cp ../old_dist/Extensions/* Extensions
  5. if you're using a binary distn., copy all the Python files you've accumulated in ../old_dist/lib/python1.5 into the new lib/python1.5 directory (if you're using a source distn this isn't necessary, as your Python files are in a location that the Zope system knows about).
  6. create a backup directory for the Data.fs files that came with the new distribution; mkdir new_distn/var/Data_old
  7. mv new_dist/var/Data.* new_dist/var/Data_old
  8. cp ../old_dist/var/Data.* var/
  9. use zpasswd to create a superuser id/pw of your choice
  10. stop the old distn. cd to the old_distn directory and ./stop
  11. cd to the new distribution and start it with ./start .
(5) is the real pain - you'll only find the .py files you've missed when you get a traceback.