さくらサーバにPHP5をインスト
さくらサーバはPHP4なので,そのままではactiveCollabが動かない。
dotPorjectは今のところPHP4推奨なのだけれど。使い分け大変。
こちらを参考に。http://www.curlybrace.net/wp/activecollab
"user"は各自のIDに置き換えてください。"http://user.sakura.ne.jp/"になっているはずです。
- PHP5をダウンロード
- さくらサーバにアップ(/home/user/work/など)
- sshでサーバ(user.sakura.ne.jp)にログイン
- "tar -zxvf ファイル名"で解凍し,できたディレクトリに移動
- ./configure 〜〜(後述)
- make
- make install
- php5の実行ファイルを配置("cp ~/bin/php5 ~/www/cgi-bin/php5.cgi")
- .php5をApacheがPHP5のスクリプト認識するように.htaccessを配置(後述)
- 特定ディレクトリ以下では.phpでPHP5が動くように.htaccessを配置(後述)
configureオプション
./configure --prefix=$HOME --with-config-file-path=$HOME/www/php5.ini --program-suffix=5 --with-pear=$HOME/share/pear5 --enable-force-cgi-redirect --enable-mbstring=all --enable-mbregex --enable-mbstr-enc-trans --enable-versioning --enable-trans-sid --with-mysql --with-openssl=/usr --with-soap=yes --with-zlib=/usr --with-gd=/usr/local --with-jpeg-dir=/usr --with-freetype-dir=/usr --with-ttf --with-png-dir=/usr --with-curl
※1行です