I want to learn PHP in RHEL 5.0.
So for this I installed Apache server by
yum install httpd*
service httpd restart
Then I wrote a simple program. At this time I am in /root directory
vi deepak.php
<?php
echo -e "Hello World This is my first program in Php";
?>
Then I went in GUI MODE and open Mozilla Firefox and in the address bar I gave address
localhost/root/deepak.php
But this is not working for me. The error is very common, Server can not find the page..
Now I think my coding is right, but I don't know where I am wrong.
Do I have to make some more settings in my RHEL or have to make some entry in any file?
Should I have to install PHP separately? And if yes, please tell me correct package name for RHEL 5.0.