I am using Apache2 server and i have created these two files as below:
/var/www/html/Roshan/web.html
/var/www/html/Roshan/cgi/mypage.php
But instead of getting output on clicking submit
button, file mypage.php
is getting downloaded.
How can i fix this problem?
I got this answer for same question asked by someone else but i am not getting this file /etc/apache2/httpd.conf
Uncommenting the following line in /etc/apache2/httpd.conf
fixed the problem for me:
LoadModule php5_module libexec/apache2/libphp5.so