It is possible to run multiple PHP versions on a single server. Because some website programs are incompatible with newer PHP versions, we can only use older ones. So, how do you install multiple PHP versions on LNMP? The method is very simple. After SSH-ing into the VPS, navigate to lnmp1.5 (modify if you are not using version 1.5).
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, you will see the PHP version selection option. Additionally, if you are using
Baota 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.
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.