Running Multiple PHP Versions on One Linode
Is it possible to have more than one PHP version on a Linode? For example, can you run an older version for compatibility but have a newer version of PHP available for new sites?
Yes, you can! However, it's a bit more involved than just installing multiple versions. Most PHP packages will install libraries in the same location, so the one installed last will overwrite other versions.
To get around this, you can use a program that can help you build different versions of PHP and switch between them. I'd recommend PHPBrew as it was tailor made just for this purpose.
If you're using cPanel, you can switch between PHP versions by using the MultiPHP Manager for WHM.