The implementation process of upgrading PHP5.4.43 to 5.6.20 under CentOS 6.5 64 bit, based on yum installation!
1. You need to implement this URL first:https://www.shuijingwanwq.com/2014/12/26/439/
2. Uninstall the current PHP version and execute the command, as shown in Figure 1:
yum remove php*
3. Install the php5.6 version and execute the command, as shown in Figure 2:
yum install php-mysqlnd php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-cli php-common php-devel php-mbstring php-mcrypt php-soap php-bcmath php-imagick php-redis –enablerepo=remi, remi-php56
4. Execute the command, as shown in Figure 3, and report an error: as shown in Figure 3:
php-v
PHP WARNING: ModuleGDAlready loaded in unknown on line 0
PHP WARNING: ModuleimagickAlready loaded in unknown on line 0
PHP 5.6.20 (CLI) (Built: Mar 31 2016 07:24:47)
Copyright (C) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (C) 1998-2016 Zend Technologies
5. Check the phpinfo information and find that gd.ini and 20-gd.ini, imagick.ini and 40-imagick.ini, as shown in Figure 4 and 5:
6. Delete 20-gd.ini, 40-imagick.ini, as shown in Figure 6
cd /etc/php.d/
RM 20-GD.INI
RM 40-imagick.ini
7. Execute the command, the display version is 5.6.20, as shown in Figure 7:
php-v
PHP 5.6.20 (CLI) (Built: Mar 31 2016 07:24:47)
Copyright (C) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (C) 1998-2016 Zend Technologies






