首先中止 Apache Serverphp
service httpd stophtml
解除安裝 PHP 5.1.x 的版本mysql
yum remove php-*sql
安裝 PHP 5.3spa
yum install php53xml
yum install php53-clihtm
yum install php53-commonip
yum install php53-develrem
yum install php53-gdrpc
yum install php53-mbstring
yum install php53-mysql
如下可考慮安裝
yum install php53-soap
yum install php53-xml
yum install php53-xmlrpc
yum install php53-bcmath
yum install php53-snmp
升級完成後記得去修改 /etc/php.ini 中的 date.timezone = "Asia/Taipei"
從新啟動 Apache Server
service httpd start
這樣就升級完成了.
參考:http://proxy.gtn.com.tw/forum/index.php/topic,128.msg142.html