Linux下yum升级安装PHP 5.5

系统环境:

CentOS 6.4 x86_64
Fedora 20 x86_64
Fedora 20 源中已经有了PHP的源,直接可以使用以下命令安装即可:

# yum install php-fpm php-common php-devel php-mysqlnd php-mbstring php-mcrypt
以下为 CentOS 下安装 PHP 方法:
添加 epel 源

# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
添加 remi 源

# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
安装 PHP

# yum –enablerepo=remi,remi-php55 install php-fpm php-common php-devel php-mysqlnd php-mbstring php-mcrypt
查看 PHP 版本

# php -v
PHP 5.5.9 (cli) (built: Feb 11 2014 08:25:33)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
启动 php-fpm

# service php-fpm start
Starting php-fpm:  [  OK  ]

 

No Comments

Post a Comment