Last updated on January 10th, 2019 at 09:57 am
Update php to 7.2 for your vesta Control Panel
1 As usual, let’s update all your system software to the latest version available using the yum package manager on centos 7.
sudo yum -y update
2 Next, we will check what version of PHP we have installed for reference.
3 Once the update of your system is completed, you can proceed with the installation of yum-utils if it is not already installed on your server. yum-utils will be used to enable the new version of PHP on your system.
sudo yum install yum-utils
4 Enable Remi PHP 7.2 repo
sudo yum-config-manager --enable remi-php72
5 Once the Remi PHP 7.2 repo is enabled we can tell yum to update, which will upgrade our old version of PHP to 7.2
sudo yum update
#6 Once the process is finished your server will now have PHP 7.2. In order for the changes to take effect we will have to restart our Apache web server.
systemctl restart httpd
7 If you are running nginx as a web server along with php-fpm then run:
sudo systemctl restart nginx
sudo systemctl restart php-fpm
8 To ensure that the PHP is updated to version 7.2 on your server, you can run the command: