MODxのインストール
MODx(0.9.6.1)をhttp://modxcms.com/forums/index.php/topic,4544.0.htmlを参照にインストールしてみた。
Apacheの設定変更
index.phpが先に読まれるように、.htaccessが有効になるようにする。
<Directory "/home/foobar/public_html/modx/"> DirectoryIndex index.php index.html AllowOverride All </Directory>
ソースのインストールとパーミッション設定
mod_phpの場合Apacheのユーザが書き込めるように以下のように設定
$ zcat ../Archives/modx-0.9.6.1.tar.gz | tar xvf - $ mv modx-0.9.6.1 modx $ cd modx $ chmod 777 assets/cache/ $ chmod 666 assets/cache/siteCache.idx.php $ chmod 666 assets/cache/sitePublishing.idx.php $ chmod 777 assets/images/ $ chmod 777 assets/export/ $ touch manager/includes/config.inc.php $ chmod 666 manager/includes/config.inc.php
データベースの初期設定
データベース、ユーザを作成する。
$ cat init.sql CREATE DATABASE IF NOT EXISTS modx; GRANT ALL PRIVILEGES ON modx.* TO modx@localhost IDENTIFIED BY 'modx' WITH GRANT OPTION; GRANT FILE ON *.* TO modx@localhost; $ mysql -u root -pFOOBAR mysql < init.sql