Mohammad Hasan

Registered
May 17, 2019
1
0
1
Bangladesh
cPanel Access Level
Root Administrator
I have tried to upgrade php 5.6 to php7 using following remi & repository in centos machine cpanel/WHM installed server.
Code:
# 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
 

Attachments

Last edited by a moderator:

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,983
159
368
SLC
cPanel Access Level
DataCenter Provider
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
 
  • Like
Reactions: cPanelLauren

tmcstom

Member
Dec 31, 2014
21
4
53
cPanel Access Level
Root Administrator
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
 
  • Like
Reactions: cPanelLauren

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
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.