How to install multiple PHP versions on VestaCP for centOS.
Hello! Usually PHP selector is not officially supported by VestaCP. We should run the script with our own risk.
Let us see how to install multiple versions of PHP on VestaCP. Here we have taken centOS server as an example.
Go to the path where you want to clone the github , preferrably in the path /opt
Ex. cd /opt
Clone the github in the chosen path using the below command.
A new folder will be created with the name sk-php-selector.
Go the the newly created folder(sk-php-selector) and run the following command with your required version.
bash sk-php-selector2.sh php72
To select php 7.2 as your current php version from the multiple versions installed, do the following.
Login to vestacp >> Web >> domain.com >> Edit >> under Template >> select "sk-php72" >> Save
Now check the php info from your website.
It should show PHP 7.2 version.