所以網路上教學的無法使用
http://xyz.cinc.biz/2014/04/centos6-php-54.html
所以採用直接到centos去抓rpm
http://mirror.centos.org/centos/6/sclo/x86_64/rh/php54/
下列rpm套件可到上述網只抓取
1.首先需安裝
yum install policycoreutils-python
=========PHP5.4套件
rpm -ivh php54-php-5.4.40-3.el6.x86_64.rpm php54-php-common-5.4.40-3.el6.x86_64.rpm php54-php-cli-5.4.40-3.el6.x86_64.rpm php54-runtime-2.0-1.el6.x86_64.rpm
==========mysql套件
rpm -ivh php54-php-pdo-5.4.40-3.el6.x86_64.rpm php54-php-mysqlnd-5.4.40-3.el6.x86_64.rpm
==========gd套件
# rpm -ivh php54-php-gd-5.4.40-3.el6.x86_64.rpm
直接安裝會出現下列訊息
warning: php54-php-gd-5.4.40-3.el6.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f2ee9d55: NOKEY
error: Failed dependencies:
libt1.so.5()(64bit) is needed by php54-php-gd-5.4.40-3.el6.x86_64
解法:
先安裝
yum install t1lib.x86_64
才能安裝
rpm -ivh php54-php-gd-5.4.40-3.el6.x86_64.rpm
設定檔在這邊
/opt/rh/php54/root/etc/php.ini
沒有留言:
張貼留言