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

PHP 8.1 CentOS 8.x/Stream-8 Installation – Step-by-step

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

Installing PHP

  1. 2. Enabling Remi Repository

    Enable Remi Collet Repo for CentOS GNU/Linux

    Adding Remi RPM Repo for CentOS
  2. 3. Installing PHP 8.1

    Now to Install PHP 8.1 on CentOS
    First, enable the Module Stream with:

    sudo dnf module reset php

    And then to Install it:

    sudo dnf module install php:remi-8.1

    This Setup includes also the most useful Extensions and Tools.
    Then Test your new Php with:

    php -v
  3. 4. Installing PHP 8.1 Extensions

    Again to Search PHP 8.1 Extensions.

    So you can Search for the available PHP 8 Extensions running:

    dnf search php83-

    And possibily refine the Result using a grep Pipe

    dnf search php- | grep [KEYWORD]

    Or:

    dnf search php83- | grep extension

    Next to Install them play:

    sudo dnf install php83-php-pecl-[MYEXT]

    Or also for instance, on a Multiple Setup:

    sudo dnf install php83-php-pecl-{mcrypt,mysql,imagick,memcached}

    Simply Hit “y” and Enter when the Command Stop:

    Solving

Contents