
A server can run multiple PHP versions because some website programs are incompatible with the new PHP version, so we have to use the old PHP version. So how to install multiple PHP versions on LNMP? The method is very simple.
Connect to the VPS via SSH, enter lnmp1.5 (if you are not using version 1.5, modify it yourself)
cd lnmp1.5
Then enter
./install.sh mphp
An option interface for installing PHP versions will appear. Enter the number corresponding to the PHP version you need to install and press Enter, and it will begin installation.

Then when you add a virtual host, the PHP version selection will appear.
In addition, if you are usingBaota Panel, you can also directly install multiple PHP versions in the backend, but don't install too many, or it might slow down the system.