Last Updated on 5 years by Sachin G
In this post , we are going to discuss about upgrade php version in vestacp or vesta web hosting control panel from PHP 5.4 or 5.6 to PHP 7 Version . Here I have host VestaCP on CentOs 7 Version. So you can use or try CentOs and RHEL different version . Before writing this article I tested upgraded from my php 5.4 version to php 7.4 version. Lots of different benefits to use PHP 7 version like latest engine, speed ,performance and security . PHP applications framework like WordPress will have good performance. In my panel configuration , i have not used php-fpm web package , used with apache and nginx web package.
In Order to upgrade , we have to install EPEL and Remi repository on our Linux based Operating system.
STEP 1: Click Here to Install EPEL on RHEL / CentOS
STEP2 : Install Remi Repository on Centos 7
Below are the steps to install remi repository on centos 7 or RHEL 7 Server.
# wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm # rpm -Uvh remi-release-7.rpm
STEPS 3 : Install yum utility yum-config-manager
Installing yum utility to use yum config manager to enable remi php version repository.
# yum install yum-utils # yum-config-manager --enable remi-php74
STEPS 4: Updates available package
Below command will search for available updates and this will update the version php .
# yum update -y
After running update command the php version will be update to latest 7.4 . So you have restart your web server services like apache or nginx , then your website will use new version .
STEP 5: Check php Version
[root@panel ~]# php -v
PHP 7.4.4 (cli) (built: Mar 17 2020 10:40:21) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
I am a professional freelance contributor and the founder of Tech Transit. I hold certifications in Linux, Ansible, and OpenShift from Red Hat, as well as CPanel and ITIL certifications. With a passion for education, culture, and community, I love writing and sharing knowledge. Since 2009, I’ve been actively using, setting up, supporting, and maintaining Linux systems. Linux truly rocks!