PHP file gets download instead of getting executed when browsed in any browser
- by baltusaj
I have a phpinfo.php file which I am trying to run by browsing to it using browser but the browser downloads the file instead of executing it.
phpinfo.php
<?php
phpinfo();
?>
I followed following this post, added following lines to my /etc/apache2/httpd.conf and restarted apache but invain. phpinfo.php still gets downloaded.
…