openbsd-ports/www/zope/files
2004-08-03 12:08:10 +00:00
..
README.OpenBSD update to zope-2.7.2!!! 2004-08-03 10:16:36 +00:00

$OpenBSD: README.OpenBSD,v 1.1 2004/08/03 10:16:36 xsa Exp $

In this document we'll see how to create a zope instance and have it
start at boot time. Throughout this document, we will assume that the
instance you want will be located in /var/www under the name of 'zope'.
Our instance will thus be /var/www/zope.

1) Creating your instance

 - run %%ZOPEHOME%%/bin/mkzopeinstance.py to create your instance:

   # %%ZOPEHOME%%/bin/mkzopeinstance.py
   Please choose a directory in which you'd like to install
   Zope "instance home" files such as database files, configuration
   files, etc.

   Directory: /var/www/zope
   Please choose a username and password for the initial user.
   These will be the credentials you use to initially manage
   your new Zope instance.

   Username: zopeadmin
   Password: 
   Verify password:

 - as we want to run our instance(s) with the _zope user, we should
   grant him the rights on the log/ and var/ directories.

   # chown _zope /var/www/zope/{log,var}

2) Have your instance start at boot time:

 - to have your instance start at boot time, add the following to your
   /etc/rc.local.

   if [ -r /var/www/zope/etc/zope.conf -a -x /var/www/zope/bin/zopectl ]; then
   	echo -n ' zope'
	/var/www/zope/bin/zopectl start
   fi