Plone4.1.2をCentOS6にインストール
OSインストール
はじめての自宅サーバ構築 を参考にして、
- minimal desktop
- 開発ツール
でインストール
- 仮想サーバにインストールしたので、インストール後に停止し、ネットワークをbridgeに変更する。
- OSを起動して、ネットワーク設定で自動起動を設定。ifconfigコマンドでIPアドレスが取れていることを確認する。
- キーボードのアンダースコアが入力できない。
Firewallをオフにする :
# system-config-firewall-tui
selinuxをdisableに :
# vi /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted
設定後、リブートする。
Ploneのインストール
Plone4.1.2 unified install をダウンロード :
$ wget http://launchpad.net/plone/4.1/4.1.2/+download/Plone-4.1.2-UnifiedInstaller.tgz $ tar zxvf Plone-4.1.2-UnifiedInstaller.tgz $ cd Plone-4.1.2-UnifiedInstaller $ su - # ./install.sh standalone
10分くらいでインストールが終わり、デフォルトのユーザ名とパスワードが表示されるのでメモを取る :
Use the account information below to log into the Zope Management Interface The account has full 'Manager' privileges. Username: admin Password: xxxxxxxx This account is created when the object database is initialized. If you change the password later (which you should!), you'll need to use the new password.
デバッグモードで起動 :
# /usr/local/Plone/zinstance/bin/instance fg
ブラウザでサイトにアクセスして見えたら、Ploneサイトを追加する :
http://localhost:8080/
FTPを使えるようにする :
# vi /usr/local/Plone/zinstance/buildout.cfg
# Ports # ----- # Specify the port on which your Zope installation # will listen: http-address = 8080 ftp-address = 8021 これを追加
builoutする :
# cd /usr/local/Plone/zinstance/ # ./bin/buildout
zope.confの修正 :
# vi /usr/local/Plone/zinstance/parts/instance/etc/zope.conf
FTPの部分を追加 :
<http-server>
address 8080
</http-server>
<ftp-server>
address 8021
</ftp-server>
Zopeを一度止めて、デバッグモードで起動 :
# /usr/local/Plone/zinstance/bin/instance fg
エラーがでなけらば、通常モードで起動 :
# /usr/local/Plone/zinstance/bin/plonectl start
WorkFlowの変更
標準のワークフローでは、ページを作成したり、FTPでアップロードしたときには非表示になっている。 Plone3以降には、CMFPlacefulWorkflowというプロダクトが標準で入っている。 これを使うとフォルダー毎に異なったワークフローを割り当てることができまる。 次のようにすれば、作成してすぐに公開できる。
- 「サイト設定」-「アドオン」にいき、これを有効にする。
- Ploneの画面でワークフローを変更したいフォルダーにいき、「状態」-「ポリシー」を選び、単一状態ポリシー に設定する。
- Category(s)
- zope
- The URL to Trackback this entry is:
- http://lightson.dip.jp/blog/seko/2693/tbping