Personal tools
You are here: Home Members marr Plone from Scratch
Document Actions

Plone from Scratch

by marr last modified 2006-03-01 04:54

A memo for Plone installation with source code tar ball in a Linux box.

先確認 python 版本

利用 python -V 指令可以知道 python 版本,建議是 2.3.5 版本,而 2.4.1 版本也可使用。不過,要修改 configure 檔案裡 ACCEPTABLE="2.4.1" 設定值。
另外 python 也要事先加入 pyexpat 模組的編譯,並建議安裝 PIL (Python Imaging Library),以提供更好的影像檔案處理能力。

準備原始碼目錄

# cd /opt
# wget http://www.zope.org/Products/Zope/2.8.5/Zope-2.8.5-final.tar.gz
# wget http://nchc.dl.sourceforge.net/sourceforge/plone/Plone-2.1.2.tar.gz
# tar xvzf Zope-2.8.5-final.tar.gz
# tar xvzf Plone-2.1.2.tar.gz
# rm -rf Zope-2.8.5-final/lib/python/Products/BTreeFolder2
# mv Plone-2.1.2/* Zope-2.8.5-final/lib/python/Products

執行原始碼編譯安裝

# cd Zope-2.8.5-final
# ./configure --prefix=/opt/zope285
# make
# make install

建立 Zope Instance

# cd /opt/zope285
# bin/mkzopeinstance.py

設定 instance home 為 /opt/zope285/home

# vipw

建議以 zope 帳號為 effective user 來執行。

# chown -R zope.zope /opt/zope285/home

修改 zope.conf

# vi home/etc/zope.conf

設定 effective-user zope

進階安裝設定

如果想要讓 Zope 採用分散式資料庫方式運作,可以設定以 ZEO 方式來執行。可參考 http://plone.org/documentation/tutorial/robust-installation 及 http://longsleep.org/howto/sharesessionwithzeo 的說明。

結合關連式資料庫或檔案系統

如果想要把 ZODB 的資料直接存到 MySQL 或 PostgreSQL 裡,可參考 http://new.plone.org/events/sprints/castlesprint/wiki/ApeInstallation 說明。


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: