[Zope] Upgrading python and zope on your box

Heimo Laukkanen huima@fountainpark.org
Wed, 24 Apr 2002 23:44:36 +0300


Zope 2.5.1 is now released for some of us it is time to update our 
personal bozes. Here is a summary and possibly a really lame 
instruction on how to go through your own upgrading.

Upgrading Zope and python
-------------------------

All the commands are run as root. Paths may vary on your box.

User that runs zope on my box is zope, which is just like nobody ,-)

Remeber to take care of the permissions in the zope directory if you 
haven't allready done so. See the links at the bottom of this message.

Python
------

Download the required Python source rpm

Rebuild Python-rpm:s from the source-rpm

rpm --rebuild pythonxx.xxx-x.src.rpm

cd into rpm directory: example cd /usr/src/redhat/RPMS/i386/

Install / Upgrade rpms: rpm -Uvh python2.1*
( you can also use the --force option )

After installing see which version python is running. Type python
and see the version. If that is not what you expected, you migth
want to delete old python from /usr/bin/ and create for example 
symlink to point to the rigth version.

ln -s python2.1 python


Zope
----

Download the required Zope linux package

Gunzip and untar the package.

cd into the directory

run ./install      ; it will compile the python modules

create admin user and password for upgrade: zpasswd access
write username and password according to instructions.

make zope user own everything: chown -R zope.zope

edit start script: pico -w start
Add correct user to run zope with u parameter:  -u zope
Save start script and try it: ./start

Zope should now start on port 8080

Try it out. Log in to the management screen with url
http://SERVER-IP/manage

Type in admin username and password.

See that everything works. And after that go in the web browser
to zope control-panel and select shutdown.

now remove new var-directory: rm -rf var
and also the access-file: rm access

and copy everything over the old zope: cp -r * /path/of/old/zope

cd to old zope: cd /path/of/old/zope

Run the start script: ./start

If it works, everything should be ok - and you are ready to start
zope for real (next step). Possible causes for problems may be found 
for example in the var-directory. pcgi-pid or Data.fs-lock may cause 
stop Zserver from starting, so depending on error messages you migth 
want to destroy those.

Start zope with old startup script: /etc/rc.d/init.d/zope start

See what happens: /etc/rc.d/init.d/zope status

Additional info:
http://www.zope.org/Documentation/Misc/InstallingZope.html

http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO


-huima