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

How to Install LAMP With Apache, MariaDB & PHP 7 on CentOS 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:
    http://localhost/test.php
    LAMP Installation on CentOS PHP Info

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