If you would like to install PHP 5.5 and prefer using the package manager like me, the following steps below will enable you to install PHP 5.5 from the Dot Deb repositories.
#!/bin/bash # download the GPG key of the repository and add it to apt: wget http://www.dotdeb.org/dotdeb.gpg -O /tmp/dot-deb.gpg # add downloaded key to apt apt-key add /tmp/dot-deb.gpg # create apt sources file for DotDeb repo echo -e "deb http://packages.dotdeb.org wheezy-php55 all\ndeb-src http://packages.dotdeb.org wheezy-php55 all" > /etc/apt/sources.list.d/dotdeb.sources.list # update apt & upgrade packages apt-get update && apt-get install php5
Note: If you are looking for a how-to on installing PHP 5.6, please see PHP 5.6 on Debian Wheezy.