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?

1 Reply

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.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct