How to Add PHP 5.6 Repository for Debian Based OSes

June 5, 2018 | By thelinuxevangelist | Filed in: Tutorial.

Add PHP 5.6 Repository Debian

You Are Welcome! This Tip Shows You How to Enable PHP 5.6 Repository for Debian Based GNU/Linux Systems.

And this PHP 5.6 Debian Repo Setup is needed from Debian Stretch 9 Releases.

Furterhmore, this Guide is Valid for All the Debian Linux Based Distros like:

  • Debian
  • Kali Linux
  • Deepin Linux
  • MX Linux
  • antiX Linux
  • Parrot Linux
  • SparkyLinux
  • MakuluLinux
  • Elive Linux
  • LMDE Linux
  • CrunchBang Linux
  • Parsix Linux
Add PHP 5.6 Repository for Debian Based - Featured
  1. 1. Launching the Shell Emulator

    Open a Terminal window
    (Press “Enter” to Execute Commands)

    Add PHP 5.6 Repository for Debian Based - Open Terminal Shell Emulator
  2. 2. Installing Requirements

    Then Install Required Packages with:

    sudo apt install apt-transport-https lsb-release ca-certificates
  3. 3. Getting GPG Key

    Next to Import GPG Key

    sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
  4. 4. Adding PHP 5.6 Repo

    Again to Add PHP 5.6 Repository

    su -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'

    For Debian Based Release the Replace ‘$(lsb_release -sc)’ with ‘Buster’.

  5. 5. Updating Sources

    Finally, to Update Apt Packages Sources

    sudo apt update
  6. 6. Installing PHP 5.6

    How to Install and Setup PHP 5.6 on Debian Based:

    PHP 5.6 Installation Guide
  7. So Now I’m truly Happy if My Guide could Help You to Add PHP 5.6 Repo on Debian Based!


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,