The latest version of Plesk support multiple PHP versions. The user or admin can select the version from the control panel.
Once you have the PHP versions installed use the /usr/local/psa/bin/php_handler utility to inform Plesk. for example:
1 2 3 4 5 6 7 8 9 |
./php_handler --add -id cgi52 -displayname 5.2.17 \ -path /usr/bin/php52/php-cgi -phpini \ /etc/php52/cgi/php.ini -type cgi ./php_handler --add -id fastcgi52 -displayname 5.2.17 \ -path /usr/bin/php52/php-cgi -phpini \ /etc/php52/cgi/php.ini -type fastcgi ./php_handler --reread |
Also here’s an article that shows how to build the alternate version on Debian, including accurate info about necessary patches:
http://zgadzaj.com/how-to-install-php-53-and-52-together-on-ubuntu-1204