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

How to Install LAMP With Apache, MariaDB & PHP 7 on Red Hat Linux 7

September 15, 2019 | By the+gnu+linux+evangelist.

Getting Started

  1. 5. Starting Apache

    Starting & Possibly Enabling Apache
    To Launch it:

    sudo service httpd start

    And to Get it Started at Boot:

    sudo service httpd enable
  2. 6. Testing LAMP

    Finally, to Test LAMP Setup
    Making the Php info File:

    sudo nano /var/www/html/test.php

    Append:

    <?php
    phpinfo();
    

    Ctrl+x to Save & Exit from nano editor :)
    Check on Browser at (Possibly replace localhost with your Server IP):
    http://localhost/test.php
    LAMP Installation on Red Hat Linux PHP Info

  3. 7. 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