How to install extensions for multiple php versions?

Hello,

I have an old PHP 5.3 on CentOS 6. I installed a new PHP 5.5 according to the documents of Multiple PHP Versions (https://www.virtualmin.com/documentation/web/multiplephp). It does work but I need some new extensions for the new PHP 5.5. I wonder how I install the required extensions like GD for the new PHP 5.5 version?

Thank you for your help.
Epets

Hi,

Most extensions using the method mentioned can be installed via the command line by doing something like:

yum install php55-php-EXTENSION

So let’s say you want to install php-soap for PHP 5.5, you’d run yum install php55-php-soap

Hopefully this helps!

Thank you so much !