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

LAMP PHP 8.x CentOS 8 Installation – Step-by-step

November 27, 2021 | By the+gnu+linux+evangelist.

Getting Started

  1. 5. Testing LAMP

    Finally, to Test LAMP WebServer Installation
    Access the Server document’s location:

    cd /var/www/html

    Create a PHP Info file:

    sudo nano info.php

    If Got “User is Not in Sudoers file” then see: How to Enable sudo
    And Append:

    <?php
    phpinfo();
    ?>
    

    Ctrl+x to Save & Exit from nano Editor ;)

    sudo chown apache:apache info.php

    Now to Start the Apache Web Server run:

    sudo systemctl start httpd

    Then Open a Browser and access the URL:
    http://localhost/info.php
    For a Remote Machine replace “localhost” with your Server IP in the above:
    How to Install LAMP CentOS 8.x/Stream-8 - PHP Info
    You should Successfully see the PHP Info notice similar to here above :)

  2. 6. Setting up Firewall

    (Optional) Required only to Set up a Web Server
    First, to Enable Remote Connections use:

    sudo firewall-cmd --permanent --zone=public --add-service=http

    Last, Restart the Firewall with:

    sudo systemctl restart firewalld.service

Contents