[Centos] Zope on CentOS3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Avtar Gill wrote:
> I'd like to give Zope a test drive and I was curious if anyone out there 
> is currently using Zope 2.7 on CentOS 3.4

I'm running Zope on 127.0.0.1:8080 and then using Apache ProxyPass and 
VirtualHostMonster to run my site, here is my quick howto on building 
zope and python and psycopg.  (just my notes, so it might not have too 
much polish).


Building a Modern Zope 2.7.5 + Python 2.3.5

wget http://www.python.org/ftp/python/2.3.5/Python-2.3.5.tar.bz2
wget http://www.zope.org/Products/Zope/2.7.5/Zope-2.7.5-final.tgz

mkdir /home/user/zope

Python

tar -xvjf Python-2.3.5.tar.bz2
cd Python-2.3.5
./configure --prefix=/home/user/zope
make
make install

Zope

tar -xvzf Zope-2.7.5-final.tgz
cd Zope-2.7.5-final
./configure --with-python=/home/user/zope/bin/python 
--prefix=/home/user/zope
make
make install

Create the Zope Instance

/home/user/zope/bin/mkzopeinstance.py

Directory: /home/user/zope
Username: admin
Password: adminpassword

Egenix MxDateTime

wget http://www.egenix.com/files/python/egenix-mx-base-2.0.6.tar.gz
tar -xvzf egenix-mx-base-2.0.6.tar.gz
cd egenix-mx-base-2.0.6
/home/user/zope/bin/python setup.py build
/home/user/zope/bin/python setup.py install

Psycopg

wget http://initd.org/pub/software/psycopg/psycopg-1.1.18.tar.gz
tar -xvzf psycopg-1.1.18.tar.gz
cd psycopg-1.1.18

./configure --with-python=/home/user/zope/bin/python 
--with-postgres-libraries=/usr/lib/pgsql 
--with-postgres-includes=/usr/include/pgsql 
--with-mxdatetime-includes=../egenix-mx-base-2.0.6/mx/DateTime/mxDateTime 
--with-zope=/home/user/zope

make install
make install-zope

Edit $INSTANCE_HOME/etc/zope.conf

     effective-user user

<http-server>
   # valid keys are "address" and "force-connection-close"
   address 127.0.0.1:8080
   # force-connection-close on
</http-server>

#<ftp-server>
#  # valid key is "address"
#  address 8021
#</ftp-server>

Startup Script $INSTANCE_HOME/bin/zope_ctl Add a chkconfig stanza at the 
beginning:

# zope    Start/Stop the Zope web-application server for a particular domain
#
# chkconfig: 345 95 10
# description: zope is a web server specifically for handling \
#              HTTP requests to the Zope web-application service.

ln -s /home/user/zope/bin/zopectl /etc/init.d/zope.user
chkconfig zope.user on

-Mike

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux