I'm currently running a few LAMP stacks, where I've setup PHP 5.2, 5.3 and 5.4 by hand. All servers are running Ubuntu 12.04 LTS. 5.3 is currently installed via apt-get
but all other PHP versions are compiled by hand.
I'm looking to start deploying new LAMP stacks via Puppet, and although I could write a basic script to perform the same compilation steps, I'd like to do better than that.
I've included some examples of what I'm after. The problem with all of these is that they seem to be developer focused, and even install PHP in the homedir of the user. I'm looking for something that can manage multiple versions of PHP on a production server.
I guess I could modify existing solutions, but I'm hoping to find something more purpose-built, with a decent user-base.
Boxen's Puppet PHP Module: https://github.com/mattheath/puppet-php (which depends on phpenv below):
Here I can just
include php::5_4
include php::5_3
include php::5_2
That's ultimately where I'd like to be with my Puppet config. A few simple lines, and it will take care of installation, and detecting if the version is already present so as not to re-install.
phpenv: https://github.com/phpenv/phpenv
After setting up phpenv:
phpenv install php-5.3.20
php-version: https://github.com/wilmoore/php-version