PHP 5.6 on Debian Wheezy

If you would like to install PHP 5.6 and prefer using the package manager like me, the following steps below will enable you to install PHP 5.6 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-php56 all\ndeb-src wheezy-php56 all" > /etc/apt/sources.list.d/dotdeb.sources.list
# update apt & upgrade packages
apt-get update && apt-get install php5
Did you find this article useful? Why not share it with your friends?

3 thoughts on “PHP 5.6 on Debian Wheezy

  1. Extremely helpful bash script. I had a VPS running turnkey linux with Debian wheezing, and this is the only thing I could find that really worked!

Leave a Reply

Your email address will not be published.

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