PHP4->PHP5へアップグレード(MySQLも4->5へ)
PHP4のサポート切れが近づいているとのことで、PHP4をPHP5へアップグレードした。(同様にMySQL4もMySQL5へアップグレード)
PHP5へのアップグレードは、ここを参考に行い、アップグレード自体は問題なく終了したがGeekLogの一部機能に不具合生じた。調べてみると、メモリー確保量がデフォルトの8Mでは足りなかったのが原因で24Mに増やしたらあっさり解決した。(/etc/php.iniのmemory limitを変更)
[root@lnx ~]# vi /etc/yum.repos.d/CentOS-Base.repo
------------------------------------------------------------------------------------------------
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2
protect=1
------------------------------------------------------------------------------------------------
# yum update php
# vi /etc/php.ini
-------------------------------------------------------------------
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 24M ; Maximum amount of memory a script may consume (8MB)
-----------------------------------------------------------------
続いてapacheを再起動する。
# /etc/init.d/httpd restart
httpd を停止中: [ OK ]
httpd を起動中: [Mon Apr 14 09:55:54 2008] [warn] NameVirtualHost *:80 has no VirtualHosts
Apache/2.0.52 mod_ssl/2.0.52 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.
Server www.kyo-to.com:443 (RSA)
Enter pass phrase:
OK: Pass Phrase Dialog successful.
[ OK ]
MySQLのグレードアップはここを参考に実施。特に問題は生じなかった。
# yum --enablerepo=centosplus upgrade mysql*
# yum --enablerepo=centosplus install mysql-server-5*
そもそも、CentOS4->CentOS5のアップグレードが順調に終われば問題なかったのだが、一晩掛の奮闘もむなしく失敗したためだ。
