SHORT INTRODUCTION
LAMP stands for Linux Apache MariaDB Php
Step 1: Update the system & Install Apache
Now, we need to start & enable Apache service –
Step 2: Install MariaDB Database
Now, we need to install & start MariaDB service –
Now,
Securing MariaDB – Our MariaDB is not secure by default so we need to remove default users, database & configure other settings :
Enter your root password then you will be asked some questions,
you will answer them as shown below :
Your MariaDB is now secured, Now Enable it by given command:
Step 3 : Install PHP
we need to restart Apache service to work with PHP:
To test PHP on our CentOs 7 Server, we need to create a file there using a vim editor on the directory ‘/var/www/html/’.
First Install vim Editor & then create our ‘info.php’ file
A blank text file should be displayed, just copy paste the content below:
You can the php is working or not by running the command on your browser’s url :
No responses yet