# Edit prefork part from libphp5.so to libphp52.so:
LoadModule php5_module modules/libphp52.so
测试:
# php -v
PHP 5.2.17 (cli) (built: May 21 2014 09:58:58)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
# uname -a
Linux host819.ctohome.com 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@host819 etc]# cat /etc/redhat-release
CentOS release 6.5 (Final)
搞定!!
收尾:
service httpd restart
vi /etc/yum.conf
增加 exclude=php* 防止不小心升级了php
在安装zend optimizer即可:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies