wiki.zope.jp
FreeBSD
   
RecentChanges WikiHelp WikiPractice JumpSearch


FreeBSDへの、Zopeのインストール手順

FreeBSDには、Zopeのパッケージ(ports / package)が用意されています。Python 2.3.3など必要になる他のソフトウェアがまだインストールされていなければ、自動的にインストールされますので、人力でチェックする必要はありません。

インストールの手順は、以下の例を参考にしてください。

  1. root権限を持つユーザーになる
  2. cd /usr/ports/www/zope
  3. make install   (Zopeのインストール)
  4. make instance   (インスタンスの作成)
  5. zope.confを編集して、使用するポート番号などを修正する。
  6. /etc/rc.confを編集して、「zope_enable="YES"」などの記述を追加する。


www/zope-2.7.0から、www/zope-2.7.0_1への更新時の注意事項について(2004-04-24 yasiyasi)

 2004年4月ごろ、FreeBSDのportsツリーに収録されている、Zopeのパッケージがzope-2.7.0_1へと更新された際、 Zope-2.7.0で導入されたZopeインスタンスへの本格対応が行われ、Products格納ディレクトリのポリシーや、 起動スクリプトの仕組みに、大きな変更がありました。

 FreeBSDのportsで、www/zope-2.7.0ですでにサイトを運営していた場合、zope-2.7.0_1にアップグレードした後は、 以下のように、Zopeインスタンスに関する手直しが必要になります。

 なお、Zope関連プロダクトのパッケージも、以下のようにインストール先ディレクトリが変わったので、アンインストール、 再パッケージングを行ったほうが良いでしょうが、特に作業を行わずそのままでも動くはずなので、ここでは省きます。

 以下に記述する例では、Zopeインスタンスが /usr/local/www/Zope/zope-instance に作られているものとします。

zope.conf内のproductsディレクティブの修正

 zope-2.7.0_1では、Zopeプロダクト格納位置のポリシーが以下のように変更されています。

 上記のポリシーに沿うように、既存のインスタンスのzope.confファイル( /usr/local/www/Zope/zope-instance/etc/zope.conf )を修正します。 具体的には、以下の2行を、「# Directive: products」ブロックに追記します。:

    products /usr/local/www/Zope/Products
    products $INSTANCE/Products

/etc/rc.confの修正

 /usr/local/etc/rc.d/zope.sh の仕組みが変わり、/etc/rc.confに指定された複数のZopeインスタンスを順次、起動、終了できるようになりました。 /etc/rc.confに、以下のような追記を行います。:

    zope_enable="YES"
    zope_instances="/usr/local/www/Zope/zope-instance/"

 複数のZopeインスタンスを利用する場合は、以下のように、変数zope_instancesに空白で区切って記述してください。:

    zope_instances="/usr/local/www/Zope/zope-instance/ /usr/local/www/plone-instance/"


Zope 関連ports一覧

2004年4月24日に手元で更新した /usr/ports/INDEX-5 から、「grep zope」で抽出したもの

ports名称収録ディレクトリ説明
zodb-1.0,1 /usr/ports/databases/zodb The Zope Object Database, a persistent object database for Python
zodb-py23-3.2.1 /usr/ports/databases/zodb3 The Z - Object Database for python
zpygresqlda-0.3.2_2 /usr/ports/databases/zpygresqlda PostgreSQL database adapter for Zope
ja-zope-ejSplitter-0.4.0 /usr/ports/japanese/zope-ejsplitter A Japanese word splitter for searching text in Zope Products
knowledgekit-1.6.7 /usr/ports/www/knowledgekit A mechanism for the automatic creation and maintenance of Knowledge Bases
mod_pcgi2-2.0.2 /usr/ports/www/mod_pcgi2 Persistent CGI module for Apache and Zope
plone-2.0 /usr/ports/www/plone A user friendly implementation of the CMF written on top of ZOPE
squishdot-1.5.0_1 /usr/ports/www/squishdot A web-based news publishing and discussion product for Zope
znavigator-2.00_1 /usr/ports/www/znavigator A Zope product to simplify the construction of navigation bars
zope-2.7.0_1 /usr/ports/www/zope An object-based web application platform
zope-FileSystemSite?-1.3_1 /usr/ports/www/zope-FileSystemSite? Enable file system based sites within Zope
zope-annotations-0.4.3_2 /usr/ports/www/zope-annotations A generic way to add information to arbitrary Zope objects
zope-archetypes-1.2.4 /usr/ports/www/zope-archetypes Framework for the development of new Content Types in Zope/CMF/Plone
zope-btreefolder2-1.0_1 /usr/ports/www/zope-btreefolder2 Zope product that can store many items
zope-cmf-1.4.2 /usr/ports/www/zope-cmf The Zope Content Management Framework (CMF)
zope-cmfactionicons-0.9 /usr/ports/www/zope-cmfactionicons CMFActionIcons? product for Zope/CMF
zope-cmfformcontroller-1.0.r2 /usr/ports/www/zope-cmfformcontroller CMFFormController product for Zope/CMF
zope-cmfforum-1.0_1 /usr/ports/www/zope-cmfforum A forum for ZOPE CMF with file attachments
zope-cmfphoto-0.4.2 /usr/ports/www/zope-cmfphoto CMFPhoto? product for Zope/CMF
zope-cmfphotoalbum-0.4 /usr/ports/www/zope-cmfphotoalbum CMFPhotoAlbum? product for Zope/CMF
zope-cmfquickinstaller-1.4_1 /usr/ports/www/zope-cmfquickinstaller CMFQuickInstaller? is a product for Zope/CMF
zope-cmftransforms-1.0.3 /usr/ports/www/zope-cmftransforms CMFTransforms? product for Zope/CMF
zope-coreblog-0.61b /usr/ports/www/zope-coreblog A Zope Blog/Weblog/Web Nikki Product
zope-epoz-0.8.0 /usr/ports/www/zope-epoz Epoz product for Zope/CMF
zope-exuserfolder-0.20.0_1 /usr/ports/www/zope-exuserfolder Extensible User Folder - Custom & database authenticatoin for Zope
zope-formulator-1.6.1_1 /usr/ports/www/zope-formulator Formulator - HTML form generatation and validation system
zope-groupuserfolder-2.0b2 /usr/ports/www/zope-groupuserfolder GroupUserFolder? product for Zope
zope-guf-1.2.4_1 /usr/ports/www/zope-guf A roll-your-own user folder product for Zope
zope-parsedxml-1.3.1 /usr/ports/www/zope-parsedxml ParsedXML - access and manipulated XML documents within Zope
zope-placelesstranslationservice-1.0r1 /usr/ports/www/zope-placelesstranslationservice PlacelessTranslationService? product for Zope/CMF
zope-proxyindex-1.1.2_1 /usr/ports/www/zope-proxyindex Plugin catalog index using TALES instead attribute lookup/call
zope-silva-0.9.3_1,1 /usr/ports/www/zope-silva Web application to manage/edit structured documents
zope-silvaviews-0.9_1 /usr/ports/www/zope-silvaviews A component used by Silva to attach views to objects
zope-ttwtype-1.0.r2 /usr/ports/www/zope-ttwtype TTWType? product for CMF/Plone
zope-xmlwidgets-0.10.3_1 /usr/ports/www/zope-xmlwidgets XMLWidgets? - dynamic translations of ParsedXML to HTML pages
zope-zmysqlda-2.0.8_1 /usr/ports/www/zope-zmysqlda MySQL Database Adapter for the Zope web application framework
zope-zpt-1.4.1 /usr/ports/www/zope-zpt Zope Page Templates separate design and logic in Zope applications
zope-zwiki-0.27.1 /usr/ports/www/zope-zwiki A WikiWikiWeb? product for Zope (colaborative web site system)


以下の内容は、だいぶ古いような気がします。整理のため、削除してもいいでしょうか?(2004/04/24 yasiyasi)



                - 2002/01/06 yasiyasi - 追試のために、自宅サーバを再起動しました(Zope-2.4.3-STmb?にて確認)。


Last edited Sat, 09 Sep 2006 18:45:31 +0900 Edit this page