さくらサーバにPHP5をインスト

 さくらサーバはPHP4なので,そのままではactiveCollabが動かない。
 dotPorjectは今のところPHP4推奨なのだけれど。使い分け大変。

 こちらを参考に。http://www.curlybrace.net/wp/activecollab

 "user"は各自のIDに置き換えてください。"http://user.sakura.ne.jp/"になっているはずです。

  1. PHP5をダウンロード
  2. さくらサーバにアップ(/home/user/work/など)
  3. sshでサーバ(user.sakura.ne.jp)にログイン
  4. "tar -zxvf ファイル名"で解凍し,できたディレクトリに移動
  5. ./configure 〜〜(後述)
  6. make
  7. make install
  8. php5の実行ファイルを配置("cp ~/bin/php5 ~/www/cgi-bin/php5.cgi")
  9. .php5をApacheがPHP5のスクリプト認識するように.htaccessを配置(後述)
  10. 特定ディレクトリ以下では.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行です

.php5のための.htaccess

 "/home/user/www/.htaccess"に配置する

Action php5-script /cgi-bin/php5.cgi
AddHandler php5-script .php5

.phpをPHP5として認識するための.htaccess

AddHandler php5-script .php