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.
STEP2 : Install Remi Repository on Centos 7
# 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 .