Now we will be discussing how to work with the LAMP stack so what is LAMP stack,
Linux, Apache, Mariadb, PHP, that mean we can use that mysql also, but mysql and mariadb are based on almost
same code.
So these day Redhat based systems instead of mysql, mariadb is used.
So, LAMP mean, LAMP, that mean on linux system.
We have installed the apache also for databases.
We are going to use Mariadb and for creating the dynamic page or application, we are going to use
PHP.
So here we will be just having the introduction of this lamp stack that we are going to create.
One small application in PHP will be using the Mariadb database and we will be using the Apache server and all
this we have implemented in linux.
So it will give us the working example of Lamp stack.
So it will help us in understanding the lamp stack.
We are not going into great details about the lamp stack because this course is more about Apache Web
server.
But since apache is one major part of lamp stack, so we wanted to cover how this lamp stack works.
So in this case we have again, we are going to use the lab in which we will be having the one IP address
on this master.example.com, that is 172.24.0.1, here.
We are going to implement the.
apache, mariadb, php these packages we have already installed during the lab setup that mean
Linux was already there.
We installed the apache.
We also we installed the Mariadb and PHP Also.
Now here, instead of creating the index.html file, what file we are going to create, we are going
to create the index.php file and in host file.
We are going to make entry 172.24.0.1 and it will be the www.example.com www
in all the three system.
And here we will be using two configuration files.
/etc/httpd/conf/httpd.conf and another file which is related to the PHP, that
is /etc/httpd/conf/php.conf.
And then we will go to the client, from Client.
We can use this elinks dump command www.example.com to view the Page or we can with the slash we can
specify the page also.
So that is going to be our lab setup for understanding this Lamp stack.