Getting Started
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
You should Successfully see the PHP Info notice :)How to Create an Apache 2 Virtual Host on Elementary OS.