Upgrade PHP Version in VestaCP

The Vesta panel is provisioned with PHP version 5.6 by default. There is no option to upgrade it from the panel. If needed, we can upgrade the PHP version manually from the command line. Here I am providing the steps to upgrade it on Centos 6 and Centos 7.

Step 1:

First, we need to download and install the required repositories based on the OS you are using.

a. Centos 6

# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
# wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
# rpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm

b. Centos 7

# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
# rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm

Step 2:

After adding the repositories, install the following:

# yum install yum-utils
# yum-config-manager --enable remi-php73

Step 3:

Then we need to run the yum update command:

# yum update -y

Once the update is completed, verify the new PHP version using the following command:

# php -v

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To Install and Use Docker on Ubuntu 16.04

Introduction Docker is an application that makes it simple and easy to run application processes...

Change Main IP of the server :: Vesta Panel

If we are changing the main IP of a server installed with Vesta panel, we can use the following...

cPanel: Apache-FastCGI Data Timeout Error

If you are using a cPanel server and have FastCGI enabled in Apache, you might be facing the...

Domainkey installer in cPanel

You can use the following cPanel script to install domainkey for an account...

Email issues :: Common Troubleshooting Steps

Here I will discuss some common errors and their solution: We are using a mail relay setup for...