Now we will go to the /var/www/html directory and we are going to create one simple file index.php
only one line php are going to create, we are going to create the code is going to be like this.
Even if you are not comfortable, PHP, you can copy this.
code that mean just one
line that mean we are starting with the PHP section we are closing
Then we want to display one message Echo "Hello hi", then we are ending it with that mean we are just
writing one line code of a PHP.
So with ls, we are going to check this and then we are going to restart the httpd settings.
mean we are going to restart our httpd server that mean we are creating the index.php
file.
So let us go into our master system, now in which directory we are, we are in this /var/www/html directory.
So what we are going to do, we will type the command index.php.
So we are going to specify <?php.
Then echo, we are going to type.
Hello.
Hi.
Any message you can type, then we are going to close that mean.
We have written one, almost two three line code we have written.
So we are going to save this.
We can with ls we can verify whether we have created the page or not, the pages is index.php,
we can view that also.
Then again, we are going to check this page is written proper or not.
So let us again read the code, the page is proper.
Later on, we will be testing this page also.
Now, what we are going to do systemctl.
Restart or reload?
your httpd server.
So we have restarted the server that mean we recreated the page.
So now why we have created the index.php page, why not i.php or vipin.php, why we have created
the index.php.
So that is now our question.