Upgrading to PHP7 Issue
I have tried to upgrade php 5.6 to php7 using following remi & repository in centos machine cpanel/WHM installed server.
But its showing the previous version of php again. Plz help me
# wget -q http://rpms.remirepo.net/enterprise/remi-release-7.rpm
# wget -q https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# rpm -i remi-release-7.rpm epel-release-latest-7.noarch.rpm
# yum-config-manager --enable remi-php70
# yum install php
# yum update
But its showing the previous version of php again. Plz help me
-
you don't use 3 party repo's to update PHP Undo what you did and install via the Esayapache interface or via yum yum install ea-php70-php if you want php 7 it to be the default php edit sytem php version in php multiphp manager 0 -
I would highly advise you read the WHM/cPanel documentation for making any further changes to any cPanel server. In this case the EasyApache documentation would have been very helpful. Note your server maybe running either legacy EasyApache or newer EasyApache 4 which is managed differently so I've linked both below. Welcome to the cPanel & WHM 78 Documentation home. - Version 78 Documentation - cPanel Documentation EasyApache - EasyApache - cPanel Documentation EasyApache 4 Home - EasyApache 4 - cPanel Documentation 0 -
Both suggestions from @dalem and @tmcstom are correct, the method you're using will not work. If you're not running EasyApache 4 I would strongly suggest you look into migrating, if you are adding versions of PHP is as easy as installing the package through the EasyApache 4 interface in WHM. 0
Please sign in to leave a comment.
Comments
3 comments