2.PHP的安装
sudo yum --enablerepo=remi install php php-cli php-common php-mbstring
PHP相关组件的安装
sudo yum --enablerepo=remi,epel install php-mcrypt
sudo yum --enablerepo=remi,epel install php-gd
sudo yum --enablerepo=remi,epel install php-xml
sudo yum --enablerepo=remi,epel install php-sqlite
sudo yum --enablerepo=remi,epel install php-process
pear的安装
sudo yum --enablerepo=remi install php-pear
sudo yum -y install --enablerepo=remi php-pear-Auth-SASL*
sudo yum -y install --enablerepo=remi php-pear-Mail
sudo yum -y install --enablerepo=remi php-pear-Mail-Mime
sudo pear install Crypt_Blowfish
cd ~/work/product
wget http://colo-ri.jp/downloads/Jsphon-1.0.1.tgz
sudo pear install Jsphon-1.0.1.tgz
sudo pear install Crypt_Blowfish
3.PHP的版本升级
首先确定源上的php的最新版本
sudo yum list --enablerepo=remi php
针对需要升级的部分,用如下命令
sudo yum --enablerepo=remi -y update php php-cli php-common php-mbstring
4. PHP升级的风险
php升级之后很有可能出bug
比如php5.4之后,就不支持全局变量的传递,所以升级之后全面的疏通测试很重要!