Upgrading a Zope Installation
Created by .
Last modified on 2003/08/05.
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'
- copy all your .tar and .tgz files that you've accumulated into the top-level of the new Zope distribution.
- 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)
- create an Extensions directory (and while you're at it, make an import one too)
- copy all the files in your old Extensions directory into the new one, ie for unix; cp ../old_dist/Extensions/* Extensions
- 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).
- create a backup directory for the Data.fs files that came with the new distribution; mkdir new_distn/var/Data_old
- mv new_dist/var/Data.* new_dist/var/Data_old
- cp ../old_dist/var/Data.* var/
- use zpasswd to create a superuser id/pw of your choice
- stop the old distn. cd to the old_distn directory and ./stop
- 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.
|