PHPを、PHP4(4.4)からPHP5(5.2)へバージョンアップ。 Vineのバージョンアップに備えての作業。
# apt-get remove php php-apache php-pear ...
# apt-get install php5 php5-apache2 php5-pear ...
# vim /etc/php5/php.ini
session.bug_compat_warn = 0 ; Moodle用の設定 upload_max_filesize = 4M ; アップロードの上限を4MBに error_reporting = E_ALL & ~E_NOTICE ; 通知以外のすべてのエラーを報告
# service apache2 restart
修正前:fputs ($imap_stream, sqimap_session_id() . " APPEND \"$sent_folder\" (\\Seen) \{$length}\r\n"); 修正後:fputs ($imap_stream, sqimap_session_id() . " APPEND \"$sent_folder\" (\\Seen) {".$length."}\r\n");
# pear install DB
# mv cache cache.bak # cp -a <orig_pukiwiki>/cache .
# /usr/bin/phpize # ./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config # make # make install
# mv control.php <適当なディレクトリ> # vi <適当なディレクトリ>/control.php
$user = "admin"; $pw = "eAccelerator";
# mkdir /tmp/eaccelerator # chown apache:apache /tmp/eaccelerator
# vi /etc/php5/php.ini
[eAccelerator] zend_extension = "/usr/lib/php5/eaccelerator.so" eaccelerator.shm_size = "16" eaccelerator.cache_dir = "/tmp/eaccelerator" eaccelerator.allowed_admin_path = "<適当なディレクトリ>/control.php" eaccelerator.enable = "1" eaccelerator.optimizer = "1" eaccelerator.check_mtime = "1" eaccelerator.debug = "0" eaccelerator.filter = "" eaccelerator.shm_max = "0" eaccelerator.shm_ttl = "0" eaccelerator.shm_prune_period = "0" eaccelerator.shm_only = "0" eaccelerator.compress = "1" eaccelerator.compress_level = "9" eaccelerator.keys = "shm_and_disk" eaccelerator.sessions = "shm_and_disk" eaccelerator.content = "shm_and_disk"