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.

#!/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-php56 all\ndeb-src http://packages.dotdeb.org 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

Leave a Reply to Matthew Marable Cancel 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.