My environment is :
[root@devapp etc]# cat /etc/redhat-releaseRed Hat Enterprise Linux Server release 6.3 (Santiago)
Here's what I've done to upgrade PHP.
1. Configure REMI Repository
# wget https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh epel-release-6-8.noarch.rpm
# wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# rpm -Uvh remi-release-6.rpm
2. Activate REMI Repository
# yum repolist
# yum-config-manager --enable remi-php70
# yum --showduplicates list php
# yum update php
4. Verify the PHP version
# php -v
5. Restart Web Server
# service httpd restart
0 comments:
Post a Comment