This document will try to outline a basic zope installation or upgrade of zForum in both a windows and linux-ish environment, the main topic will emphasis in the Linux environment, feel free to add to this document when windows-specific issues arise:
NEW INSTALLATION
Pre-Requisites
-
Zope (zForum has been tested on versions 2.7, 2.8 and 2.9)
-
MySQL or
Postgres Database Systems (zForum has been tested on MySQL 4 and 5 and Postgres 7 and 8)
-
CookieCrumbler
-
mysql-python and ZMySQLDA - Python bindings for mysql and Zope Database Adaptor for MySQL if MySQL is used,
OR psycopg2 and ZPsycopgDA - Python bindings for Postgres and Postgres Database Adaptor for zope id Postgres is used.
Notes:
CookieCrumbler *may* already be included in your system, especially if you have Plone installed
Database Set-Up (MySQL installation)
- Create the database that you'll use for zForum:
create database zforum_db
- Assign a user/pwd to the DB (many different ways):
grant all privileges on zforum_db.* to zforum_db_user@localhost identified by 'zforum_db_pwd';
- Read the contents of the sql schema into te newly created database: (From Products/zForum/doc/):
mysql -u zforum_db_user --password="zforum_db_pwd" zforum_db < schema_mysql.sql
zForum Set-Up
- Add it as any other regular zope product: From the ZMI, select zForum from the drop-down product list and fill in the desired values, make sure you add the appropriate database connection string, add zForum
You should be good to go.
UPGRADING
Upgrading gets a little tricky when you use zForum as a standalone product and rely on zForum's own acl_users and/or mailhosts.
Upgrading zForum in the FileSystem:
Just remove (back-up) the Products/
zForum directory, and uncompress the new zope version into the same location, restart zope.
Now the "hard" part. There could be "SQL Patches" that would need to be applied, usually it is as easy as apply the SQL patch for the version of zForum you are upgrading to, however, there *might* be other patches to apply as well, please post in this forum if you are upgrading from/to using specific zForum versions.
Upgrading zForum in the Zope Mangement Interface:
- Make a copy of the site and leave it aside
- Add the new zForum instance from the product drop-down
If you have your users located in the zForum acl_users object, I recommend you remove "acl_users", "MailHost" from the
NEWLY created zForum instance and
COPY/PASTE them from the copy of zForum you just made
From that point, you should have an operational upgraded zForum.
Let's use this thread to specify all those pesky unique combinations or special cases to complete this post.
-- sb