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

April 18, 2018 | By the+gnu+linux+evangelist.

GNU/Linux Ubuntu Enabling PHP 5.6/7.x/8.x PPA Repository

Hi! The Tip shows you How to Add the PHP 5.6/7.x/8.x Apt Repository for Ubuntu-Based GNU/Linux Systems.

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

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

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

Finally, this PHP Ubuntu PPA is valid also for:

  • Ubuntu
  • Linux Mint
  • Lubuntu
  • Kubuntu
  • Xubuntu
  • Zorin OS
  • Elementary OS
  • Linux Lite
  • Bodhi Linux
  • Kde Neon
  • Pop!_OS
  • Voyager
  • Trisquel
  • LXLE
  • feren OS
  • Peppermint
  • Q4OS
  • Linux Ultimate Edition

(You may need only find the Corresponding Ubuntu Parent Release.)

How to Add PHP 5.6/7.x/8.x PPA Ubuntu - Featured
  1. 1. Terminal Getting-Started

    How to QuickStart with Command Line on Ubuntu GNU/Linux:

    Console Ubuntu QuickStart Guide
  2. 2. Setting Up PHP Repository

    Then Add PHP 5.6/7.x/8.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 a Not Found Issue then Edit the Repo with the nano Editor like:

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

    And simply Change to the nearest available Release!
    So at this time, you may need to amend ‘jammy’ in ‘impish’.
    Ctrl+x to Save & Exit from nano Editor.

    Finally, Refresh Apt Repositories with:
    sudo apt update

Contents


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

QuickChic Theme • Powered by WordPress