PHP 5.5 on Debian Wheezy

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.

# download the GPG key of the repository and add it to apt:
wget -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 wheezy-php55 all\ndeb-src 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.
Did you find this article useful? Why not share it with your friends?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.