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