快速簡記,如何在 Linux Server 上,手動編譯 Python + Zope + Plone。

這裡的軟體版本分別是:

  • Python 2.4.4
  • PIL 1.1.5
  • Zope 2.9.5
  • Plone-2.5.1

這裡的目錄規劃架構是:

  • Python Home: /home/Python/244
  • Zope Home: /home/Zope/295
  • Instance Home: /home/Instance/OSSACC-Plone251

下面是安裝紀錄:

安裝 Python 2.4.4

  • cd /tmp
  • wget http://www.python.org/ftp/python/2.4.4/Python-2.4.4.tgz
  • tar zxvf Python-2.4.4.tgz
  • cd Python-2.4.4
  • ./configure --prefix=/home/Python/244
  • make
  • make install

安裝 PIL 1.1.5

  • cd /tmp
  • wget http://effbot.org/downloads/Imaging-1.1.5.tar.gz
  • tar zxvf Imaging-1.1.5.tar.gz
  • cd Imaging-1.1.5.tar.gz
  • /home/Python/244/bin/python setup.py install

下載 Zope & Plone

  • cd /tmp
  • wget http://www.zope.org/Products/Zope/2.9.5/Zope-2.9.5-final.tgz
  • wget http://nchc.dl.sourceforge.net/sourceforge/plone/Plone-2.5.1-final.tar.gz

安裝 Zope-2.9.5

  • cd /tmp
  • tar zxvf Zope-2.9.5-final.tgz
  • cd Zope-2.9.5-final
  • ./configure --with-python=/home/Python/244/bin/python \
  • --prefix=/home/Zope/295
  • make
  • make install

建立 Zope Instance

  • /home/Zope/295/bin/mkzopeinstance.py
  • Directory: /home/Instance/OSSACC-Plone251
  • Username: admin
  • Password: ooxx
  • Verify password: ooxx

安裝 Plone-2.5.1

  • cd /tmp
  • tar zxvf Plone-2.5.1-final.tar.gz

檢查 Zope 與 Plone 的 Five 哪一個版本比較新
兩者版本都是 Five 1.3.7 (2006-08-13) 選擇刪除 Plone 的 Five

  • rm -rf Plone-2.5.1/Five/
  • mv Plone-2.5.1/* /home/Instance/OSSACC-Plone251/Products/

設定 zope.conf

  • vi /home/Instance/OSSACC-Plone251/etc/zope.conf
  • 改 port-base 1000
  • 改 effective-user apache

啟動 Zope

  • cd /home/Instance
  • chown -Rf apache.apache OSSACC-Plone251/
  • cd OSSACC-Plone251/bin/
  • ./zopectl start

大功告成!