Attention

This document was written for an old version of Plone, Plone 3, and was last updated 1128 days ago.

To learn how to upgrade to the current version of Plone, read the upgrade manual.

Setup Server Environment

by Bryan Hinton last modified Apr 20, 2009 05:35 PM
Create privileged users & install Python 2.4, PIL, Apache2, LibXML2, ZopeSkel & Setuptools

NOTE: # denotes that the command is typed by the root user

Python 2.4

# python2.4
-su: python2.4 command not found
# which python2.4
# ls /usr/local/bin/python2.4
ls: /usr/local/bin/python2.4: No such file or directory
# cd /usr/ports/lang/python24
# make install clean
# export PATH=$PATH:/usr/local/bin
# echo "export PATH=\$PATH:/usr/local/bin" >> /root/.bash_profile


Python Imaging Library

# cd /usr/ports/graphics/py-imaging
# make install clean


LibXSLT

# cd /usr/ports/textproc/libxslt
# make install clean

 

LibXML2

# cd /usr/ports/textproc/libxml2
# make install clean
# cd ../py-libxml2
# make install clean
# cd ../py-xml
# make install clean


Apache 2.2

Add any additional modules that you may need

# cd /usr/ports/www/apache22
# make config
--accept the defaults and make sure the following are checked--
X ALIAS
X Threads
X PROXY
X PROXY_CONNECT
X PROXY_FTP
X PROXY_HTTP
X PROXY_AJP
X PROXY_BALANCER
X SSL
X SUEXEC
X VHOST_ALIAS
X REWRITE
X MIME
X MIME_MAGIC
X INCLUDE
X EXPIRES
X HEADERS
X SSL
# make install clean


Setuptools and ZopeSkel

# mkdir /usr/local/plone
# cd /usr/local/plone
# wget http://peak.telecommunity.com/dist/ez_setup.py
# python2.4 ez_setup.py
# easy_install -U ZopeSkel

 

Create group and users for Web services to run under

# groupadd www
# pw useradd www -c "Apache Server" -d /dev/null -g www -s /sbin/nologin
# pw useradd zadmin "Zope Admin" -d /dev/null -g www -s /sbin/nologin

Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.