How to Add PHP 5.6 / 7.x PPA for Ubuntu Based OSes

April 18, 2018 | By thelinuxevangelist | Filed in: Tutorial.

Add PHP 5.6/7.x Ubuntu PPA

Hello Ubuntu User! The Tip Shows You How to Add the PHP 5.6/7.x Apt Repository for Ubuntu GNU/Linux Based Systems.

And at this time the Apt Repository includes PHP 7.x and 5.6 Releases and compiled Extensions.

If the Repo is Not Valid for the Latest Ubuntu Release then it’s enough amending manually to the Previous LTS parent.

Furthermore, if you need to Install also the LAMP Stack you find Instructions to Enable the Apache 2 PPA.

Finally, this PHP 5.6/7.x Ubuntu PPA is valid also for:

  • Ubuntu
  • Linux Mint
  • Lubuntu
  • Kubuntu
  • Xubuntu
  • Zorin OS
  • Elementary OS
  • feren OS
  • LXLE Linux
  • Linux Lite
  • Bodhi Linux
  • Kde Neon
  • Peppermint Linux
  • Q4OS Linux
  • Linux Ultimate Edition
  • (You may need only find the Corresponding Ubuntu Parent Release.)

How to Add PHP 5.6/7.x PPA Ubuntu - Featured




  1. Open a Terminal Shell session
    Ctrl+Alt+t on Desktop
    (Press “Enter” to Execute Commands)

    How to Add PHP 5.6/7.x PPA Ubuntu - Open Terminal Shell Emulator
  2. Then Add PHP 5.6/7.x Apt PPA

    sudo add-apt-repository ppa:ondrej/php

    If Got “User is Not in Sudoers file” then Look: Solution
    And for Non LTS Based Releases if you Get an Error then Edit:

    sudo nano /etc/apt/sources.list.d/ondrej-ubuntu-php*.list

    And Change the Release to the Latest LTS like for instance ‘bionic’…

  3. Finally Refresh Apt Repositories

    sudo apt update
  4. How to Install PHP 5.6/7.x Apache PPA on Ubuntu GNU/Linux:

    PHP 5.6/7.x Apache PPA Install Ubuntu

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