Home > sysadmin > updating to php 5.4.1 with dotdeb

updating to php 5.4.1 with dotdeb

May 2, 2012

If you are presently using the dotdeb repo for php5, you can upgrade to 5.4.1 by adding the following to your /etc/apt/sources.list

deb http://packages.dotdeb.org squeeze-php54 all
deb-src http://packages.dotdeb.org squeeze-php54 all
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all

You should then do apt-get update, apt-get upgrade. If you get a message that some packages have been held back you should then type apt-get dist-upgrade.

Check your php installation by typing php -v. If you see errors, you probably need to comment out .ini files that are no longer used in the new version such as suhosin.ini.

Categories: sysadmin
%d bloggers like this: