I wrote a simple script and I executed it on localhost but it wasn't executed.
I am used to use Ubuntu operation system.
I've checked apache2 web server which to be run by following command :
sudo service apache2 start
After checking the service to be run I wrote simple script such a :
<head>
<title>THE PRACTICING FILE</title>
</head>
<body>
<?php
echo "HELLO";
?>
</body>
After running the script, I found out that the resulting page just shows the tages which I used in the script such as < title > tag at the top of page. But the php codes weren't executed, In this case echo "Hello"; wasn't executed.
What's wrong ? why such a thing have been occurred ? and finally how can i resolve the problem ?
<?php echo "HELLO"; ?>, in other words, apache ok, but php not installed or configured in Apache.