Plone 3 zc.buildout
by
Bryan Hinton
—
last modified
Feb 27, 2008 01:39 AM
—
filed under:
Computing
Using zc.buildout to setup a Plone3/Zope2 Development Environment
How to install Zope2 and Plone3 using setuptools, zc.buildout, and paster. The following assumes that you have Python2.4.x installed.
$ echo $LD_LIBRARY_PATH; echo $PATH; echo $PYTHONPATH /usr/local/pgsql/lib:/home/bhinton/python2.4/lib:/usr/local/lib:/usr/lib /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/bhinton/bin:/home/bhinton/lib/python2.4 /home/bhinton/lib/python2.4 $ wget http://peak.telecommunity.com/dist/ez_setup.py $ python ez_setup.py --install-dir=/home/bhinton/lib/python2.4/ $ easy_install ZopeSkel --install-dir=/home/bhinton/lib/python2.4/ $ paster create -t plone3_buildout mysite.com $ Selected and implied templates: ZopeSkel#plone3_buildout A buildout for Plone 3 projects Variables: egg: avidcode.com package: avidcodecom project: avidcode.com Enter zope2_install (Path to Zope 2 installation; leave blank to fetch one) ['']: BLANK Enter plone_products_install (Path to directory containing Plone products; leave blank to fetch one) ['']: BLANK Enter zope_user (Zope root admin user) ['admin']: YOURUSERNAME Enter zope_password (Zope root admin password) ['']: YOURPASSWORD Enter http_port (HTTP port) [8080]: HIGH NUMBERED PORT - i.e. 8090 Enter debug_mode (Should debug mode be "on" or "off"?) ['off']: LEAVE OFF FOR PRODUCTION Enter verbose_security (Should verbose security be "on" or "off"?) ['off']: LEAVE OFF FOR PRODUCTION Creating template plone3_buildout Creating directory ./avidcode.com Copying README.txt to ./avidcode.com/README.txt Copying bootstrap.py to ./avidcode.com/bootstrap.py Copying buildout.cfg_tmpl to ./avidcode.com/buildout.cfg Recursing into products Creating ./avidcode.com/products/ Copying README.txt to ./avidcode.com/products/README.txt Recursing into src Creating ./avidcode.com/src/ Copying README.txt to ./avidcode.com/src/README.txt Recursing into var Creating ./avidcode.com/var/ Copying README.txt to ./avidcode.com/var/README.txt-----------------------------------------------------------
Generation finished You probably want to run python bootstrap.py and then edit buildout.cfg before running bin/buildout -v See README.txt for details-----------------------------------------------------------
$ cd avidcode.com $ python bootstrap.py
The following two configurations depict the following
A: Single Instance of Zope with CacheFU, DocFinder, CacheFu, and Feedmixer
installed.
B. Multiple ZEO Clients and a Single ZEO Server with CacheFu, Varnish, DocFinder, and Clouseau installed. The ZEO Server is responsible for managing the connection to the ZODB.
Apache Rewrite Rules for Example B:
RewriteEngine On
RewriteRule ^/login_(.*) https://%{SERVER_NAME}/login_$1 [NE,L]
RewriteRule ^/(.*)
http://localhost:8092/VirtualHostBase/http/%{SERVER_NAME}:80/content/VirtualHostRoot/$1 [P]
