Stackato 2.10.X Update to PHP 5.4

Posted by lorned on 2013-08-19 14:57
OS: All / Any | Product: Stackato | tags: 2.10.4 patch PHP stackato
Question: 

As PHP 5.3 approaches end-of-life, how can I update to PHP 5.4 to continue receiving security updates?

Answer: 

We've created an install script to upgrade from php 5.3 to php 5.4. Since Stackato is based on Ubuntu 12.04 (LTS), and the default PHP release for 12.04 is 5.3, this script will use a non-default package repository to install 5.4. If interested, the repo being used is: https://launchpad.net/~ondrej/+archive/php5-oldstable. The scripts required to install this on Stackato 2.10.4 can be found at:

https://get.stackato.com/patch/2.10/stackato-php-5.4-installer.zip

To install, unzip the above file on all nodes running either the stager or DEA role. Once unzipped (ensure install.sh and container-upgrade-php.sh are in the same directory), execute install.sh via './install.sh'. You should be prompted to confirm running the script, and you may be asked for the node's sudo password.

A couple notes:
-This script executes a 'kato stop' command which will interrupt all stackato processes running on the node during the install process. After executing the script you will need to run 'kato start' on the node to bring everything back up.

-Suhosin is not included or compatible with PHP 5.4: https://pierre-schmitz.com/php-5-4-1-in-suhosin-out/, so that functionality is lost after you upgrade.