$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

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

October 16, 2021 | By the+gnu+linux+evangelist.

GNU/Linux Ubuntu Enabling PHP 8.x PPA Repository

Hi! The Tip shows you How to Add the PHP 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 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 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 Change the Release to the Nearest LTS like for instance ‘focal’…
    Again, at this time, you may need to amend ‘hirsute’ in ‘focal’.
    Ctrl+x to Save & Exit from nano Editor.

    Finally, Refresh Apt Repositories with:
    sudo apt update

Contents


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