我安装了PHP 5.3.3的Centos 6.5。 我从PHP 5.3.3升级到PHP 5.4成功。在命令行上显示:
[root@localhost ~]# php -v
PHP 5.4.16 (cli) (built: Nov 19 2014 08:05:17)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
但是,当我在网上回应phpinfo时,它显示: PHP版本5.3.3
我需要使用PHP 5.4。我该怎么办?
运行grep:
之后的结果[root@localhost ~]# yum list installed | grep php
php.x86_64 5.3.3-40.el6_6 @updates
php-bcmath.x86_64 5.3.3-40.el6_6 @updates
php-cli.x86_64 5.3.3-40.el6_6 @updates
php-common.x86_64 5.3.3-40.el6_6 @updates
php-dba.x86_64 5.3.3-40.el6_6 @updates
php-devel.x86_64 5.3.3-40.el6_6 @updates
php-embedded.x86_64 5.3.3-40.el6_6 @updates
php-enchant.x86_64 5.3.3-40.el6_6 @updates
php-fpm.x86_64 5.3.3-40.el6_6 @updates
php-gd.x86_64 5.3.3-40.el6_6 @updates
php-imap.x86_64 5.3.3-40.el6_6 @updates
php-intl.x86_64 5.3.3-40.el6_6 @updates
php-ldap.x86_64 5.3.3-40.el6_6 @updates
php-mbstring.x86_64 5.3.3-40.el6_6 @updates
php-mysql.x86_64 5.3.3-40.el6_6 @updates
php-odbc.x86_64 5.3.3-40.el6_6 @updates
php-pdo.x86_64 5.3.3-40.el6_6 @updates
php-pear.noarch 1:1.9.4-4.el6 @base
php-pecl-apc.x86_64 3.1.9-2.el6 @base
php-pecl-apc-devel.x86_64 3.1.9-2.el6 @base
php-pecl-memcache.x86_64 3.0.5-4.el6 @base
php-pgsql.x86_64 5.3.3-40.el6_6 @updates
php-process.x86_64 5.3.3-40.el6_6 @updates
php-pspell.x86_64 5.3.3-40.el6_6 @updates
php-recode.x86_64 5.3.3-40.el6_6 @updates
php-snmp.x86_64 5.3.3-40.el6_6 @updates
php-soap.x86_64 5.3.3-40.el6_6 @updates
php-tidy.x86_64 5.3.3-40.el6_6 @updates
php-xml.x86_64 5.3.3-40.el6_6 @updates
php-xmlrpc.x86_64 5.3.3-40.el6_6 @updates
php-zts.x86_64 5.3.3-40.el6_6 @updates
php54.x86_64 1.1-5.el6.centos.alt @scl
php54-php-cli.x86_64 5.4.16-22.el6.centos.alt @scl
php54-php-common.x86_64 5.4.16-22.el6.centos.alt @scl
php54-php-pear.noarch 1:1.9.4-10.el6.centos.alt @scl
php54-php-process.x86_64 5.4.16-22.el6.centos.alt @scl
php54-php-xml.x86_64 5.4.16-22.el6.centos.alt @scl
php54-runtime.x86_64 1.1-5.el6.centos.alt @scl
[root@localhost ~]#