# enable ip_forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward

Zope 3 deployment using zope.paste and mod_python

Install Apache and mod_python in /tmp/myapache

/tmp/myapache/conf/httpd.conf:

<Location /z3paste>
  SetHandler mod_python
  PythonHandler mod_python.wsgi
  PythonPath "['/tmp/z3paste'] + sys.path"
  PythonOption wsgi.application startup::app
  PythonOption SCRIPT_NAME /z3paste
</Location>

Install a Zope 3 instance in /tmp/z3paste/ and configure as described in zope.paste

/tmp/z3paste/startup.py:

from paste.deploy import loadapp
app = loadapp("config:/tmp/z3paste/etc/paste.ini")

/tmp/z3paste/etc/paste.ini:

[app:main]
use = egg:zope.paste
site_definition = /tmp/z3paste/etc/site.zcml
file_storage = /tmp/z3paste/var/Data.fs