It is possible to run multiple PHP versions on a single server. Because some website scripts are incompatible with newer PHP versions, we have to use older ones. So, how do you install multiple PHP versions on LNMP? The method is simple. After SSHing into the VPS, navigate to lnmp1.5 (modify if you are not using version 1.5)
cd lnmp1.5
Then enter
./install.sh mphp
The installation options for PHP versions will appear. Enter the number corresponding to the PHP version you need to install and press Enter to begin installation.

Then, when you add a virtual host, you will see the option to select the PHP version. Additionally, if you are using
Baota Panelyou can also directly install multiple PHP versions in the control panel, but don't install too many, as it may slow down the system.
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.