I have two servers running 13.04, and at some point I added the oldstable package sources for PHP 5.4. For some reason I'm not able to update it anymore though — one server doesn't upgrade from 5.4.23 to 5.4.24, and the other one, after a few troubleshooting uninstalls is stuck with 5.4.9 from the default package sources.
Here's the correct version installed on one server:
PHP 5.4.23-1+sury.org~raring+1 (cli) (built: Dec 12 2013 09:25:05) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
Here's what I did on the other server:
# add-apt-repository ppa:ondrej/php5-oldstable # apt-get update && apt-get upgrade
But, I get the old version:
# php -v PHP 5.4.9-4ubuntu2.4 (cli) (built: Dec 12 2013 04:29:20) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
I already did an
apt-get remove php* --purge, followed by an
apt-get install php5, but no dice: it brought me down from 5.4.23 to 5.4.9.
Here's the correct selections I need installed:
# dpkg --get-selections | grep php libapache2-mod-php5 install php-apc install php-pear install php5 install php5-cli install php5-common install php5-curl install php5-gd install php5-imagick install php5-mysql install
The cache doesn't even show the PPA:
# apt-cache policy php5 php5: Installed: 5.4.9-4ubuntu2.4 Candidate: 5.4.9-4ubuntu2.4 Version table: *** 5.4.9-4ubuntu2.4 0 500 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ raring-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu/ raring-security/main amd64 Packages 100 /var/lib/dpkg/status 5.4.9-4ubuntu2 0 500 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages