Debian GNU/Linux sidにp2をインストールした時のメモ -apacheとphp4のインストール root権限でapacheとphp4をapt-getする。 $ su - # apt-get install apache php4 途中 Do you want me to run the apacheconfig script now [y/N] ? と聞かれればEnterキーを押す。 -/etc/apache/httpd.confの修正 240行付近にあるlibphp4.soのコメントを外す。 # LoadModule eaccess_module /usr/lib/apache/1.3/mod_eaccess.so LoadModule php4_module /usr/lib/apache/1.3/libphp4.so # LoadModule roaming_module /usr/lib/apache/1.3/mod_roaming.so 398行付近にある、Directory Indexにindex.phpを付け足す。 <IfModule mod_dir.c> DirectoryIndex index.html index.htm index.shtml index.cgi ''index.php'' </IfModule> 767行付近のAdd Typeのコメントを外す。 # # And for PHP 4.x, use: # AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps 815行のAdd Default Charsetをコメントアウトする # Default charset to iso-8859-1 (ttp://www.apache.org/info/css-security/). #AddDefaultCharset off -/etc/php4/apache/php.iniの修正 821行以下のmbstringセクションのコメントを外す。 [mbstring] mbstring.internal_encoding = EUC-JP mbstring.http_input = auto mbstring.http_output = EUC-JP mbstring.detect_order = auto mbstring.substitute_character = none; -apacheを再起動する # /etc/init.d/apache restart