LAMP Elementary OS 6 Installation – Step-by-step

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

Getting Started

  1. 3. Testing LAMP

    To Test LAMP WebServer Installation
    First, access the Web Documents Target:

    cd /var/www/html

    Create a PHP Info file:

    sudo touch info.php

    Set the Apache User as Owner with:

    sudo chown www-data:www-data info.php

    Next Edit the PHP Info File with the Nano Editor:

    sudo nano info.php

    And Append:

    <?php
    phpinfo();
    ?>
    

    Ctrl+x to Save & Exit from nano Editor ;)
    Open on Browser the URL:
    http://localhost/info.php
    LAMP Quick Start Elementary OS- PHP Info
    You should Successfully see the PHP Info notice :)

    How to Create an Apache 2 Virtual Host on Elementary OS.

    GNU/Linux Apache2 Virtual-Host Quick Start

Contents


QuickChic Theme • Powered by WordPress