PHP 5.4 woes on Ubuntu 10.04 Lucid
So I was having an issue on a VPS I rent that it was on Ubuntu 10.04 LTS. They seem to have a different idea of what LTS means then what seems reasonable. Having your packages available for 5 years isn't something I'm waiting for, I can also still get Debian Buzz with no issues so that's not an argument. What I want is -support- for -updates- on an -existing- platform. Luckily, I don't have to travel far to the Ubuntu team to slap some sense in them because luckily people run their own PPA's that do compile software for existing OS installs.
However, I kept running into an issue that most posts and gists kept referring to PPA's that no longer supported Ubuntu 10.04 Lucid by now... Found a few PPA's but they named their packages like php54 and libapache2-mod-php54 which causes Ubuntu 10.04 Lucid with Plesk installed to throw you a giant headache cause it wants to remove Plesk specific packages (cause it's only compatible with libapache2-mod-php5 and php5)
Getting to it
Turns out however, one person still maintains a PPA with correct naming for the packages which makes for a smooth upgrade. Thank you ondrej! You can find the PPA info here: https://launchpad.net/~ondrej/+archive/php5-oldstable
Here's what you do:
/etc/apt/sources.list we add
deb http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu lucid main deb-src http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu lucid main
And then we add his key and update the system
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E5267A6C apt-get update
Now, we can get the new PHP5.4!
apt-get install libapache2-mod-php5
I recommend you compare your old configs with the new one, then it's a matter of restarting Apache2 and you're golden!
Yes you can still has.
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz # x86 wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz # amd64 tar -xzvf ioncube_loaders_lin_x86.tar.gz # x86 tar -xzvf ioncube_loaders_lin_x86-64.tar.gz # amd64 cd ioncube/ cp ioncube_loader_lin_5.4.so /usr/lib/php/modules/sw-engine/ # This depends on your setup, Plesk is usually like this
Then in the file:
# comment out the old one! zend_extension=/usr/lib/php/modules/sw-engine/ioncube_loader_lin_5.4.so
Restart Apache2 and tada, Ioncube runs once more!