Skip to main content

How to Upgrade PHP 5.6 to PHP 7.3.x Stable Release on CentOS 7 for VestaCP ?

In this tutorial I’ll show you how to upgrade from PHP 5.6.x to PHP 7.3.x , I’ve tested on production server before writing this tutorial and its just working fine without any issue.  Now go to yum repo directory and Check  remi repo is available for php73
Note: If you want use Presta 1.7.5 then use PHP 7.2 , Details : Link 1
For Apache : update to PHP 7.2.x & MariaDB 10.1
For NGINX : update to PHP 7.2.x & MariaDB 10.1
Go to Yum Directory:
# cd /etc/yum.repos.d 
# ll
Now install yum-utils, a group of useful tools that enhance yum’s default package management features. Yum-utils can be used for manipulating package repositories and additional package management operations such as enabling or disabling packages without any manual configuration by a system administrator.
You can install it as follows:
# yum install yum-utils 
In this step, you need to enable Remi repository using yum-config-manager utility, as the default repository for installing PHP.
# yum-config-manager --enable remi-php70   [Install PHP 7.0] 
# yum-config-manager --enable remi-php71   [Install PHP 7.1]
# yum-config-manager --enable remi-php72   [Install PHP 7.2] 
But I will use PHP 7.3.x
# yum-config-manager --enable remi-php73   [Install PHP 7.3] 
Now just run this command :
# yum update -y 
You’ll see php packages are getting updated, After the update process you need to restart Apache server/php-fpm-(nginx) and check the php version from by below mentioned command:
If php upgrade process fails (no update/nothing happens) or you upgraded previously from 5.6 to 7.0/7.1/7.3 then you need to run this commands to disable php 5.6/7.0/7.1/7.2 and check the repolist
# yum repolist
# yum-config-manager --disable remi-php56
# yum-config-manager --disable remi-php70
# yum-config-manager --disable remi-php71 
# yum-config-manager --disable remi-php72 
Install Some Plugins
# yum install php-apcu
# yum install php-opcache
# yum install php-imagick
# yum install php-snmp

This article based on
Link 1
Link 2
Link 3


Most Popular

CWP DNS Part 1 : How to Configure DNS properly for CentOS WebPanel on CentOS 7.6

After hosting my parent domain on CWP7.admin, I am getting dns error and i'm not able access my server using my server FQDN but i can access using my server IP.
So what can i do for that problem ?

Yes, you have to fix the error .

Environment Details:
Distro Name: CentOS Linux release 7.6.1810 (Core)
CentOS-Web Panel version: CWP7.admin
CWP version:
WebServer: Apache Only

1.Change Hostname Permanently:
# hostnamectl set-hostname hostnamectl Static hostname: Icon name: computer-vm Chassis: vm Machine ID: 7400071490ea4f7d931374824ad4b52c Boot ID: 6e1f2d76495d4b318c25c4a1195aa130 Virtualization: vmware Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-862.14.4.el7.x86_64 Architecture: x86-64 It also writes this information to the /etc/hostname file as well.
# cat /etc/hostname host.d…

CWP: How to Configure Let's Encrypt SSL Certificate for your server Hostname/FQDN on CWP7.admin

I wrote a blog on regarding Let's Encrypt SSL Certificate for CentOS Web Panel when "Letsencrypt Manager"  option was exist under Apache Settings >> Letsencrypt Manager >> Install Letsencrypt .

At Present CWP Team has been removed "Letsencrypt Manager"  that's why it will not renew any cert automatic . They made Auto SSL by default but Auto SSL grade is B and I'm not satisfied with Auto SSL.

Previous Article Link Install Letsencrypt SSL Certificate for your Server Hostname/FQDN, 100% Working 

N.B: I am using the below cipherlist

So now I am writing this solution again for all of guys and I hope that it will be 100% working again on your CentOS-Webpanel as mine .

Environment Details:
CPU Model: Intel(R) Xeon(R) CPU X3440 @ 2.53GHz
CPU Details: 2 Core (2527 MHz)
Distro Name: Ce…