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

PHP 7 Installation in Ubuntu 22.04 – Step-by-step

March 8, 2022 | By the+gnu+linux+evangelist.

Installing PHP 7

  1. 2. Enabling PPA Repo

    Add PHP PPA for Ubuntu GNU/Linux

    Install PHP Repo for Ubuntu
  2. 3. Installing PHP 7

    Then to Install PHP 7 on Ubuntu
    Simply play:

    sudo apt install php5.6
  3. 4. Setting PHP Version

    (Optional, for managing multiple Versions) And to Set PHP 7 as Default
    Use the update-alternatives Tool like:

    sudo update-alternatives --config php

    And then Choose the Right PHP release ID.

  4. 5. Searching PHP 7 Extensions

    Again to Search PHP 7 Extensions
    Run:

    grep php- /var/lib/apt/lists/ppa.launchpad.net_ondrej_php*Packages

Contents