I have installed Apache2 Mysql and php7 on my raspberry. When I am running my web pages under var/www/ folder the php file is downloaded instead of running at the backend and refer me to next page. What could be the problem I am facing. Please help me. I will be thankful to you.

closed as off-topic by Steve Robillard, techraf, goldilocks Mar 20 '18 at 13:10

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center." – Steve Robillard, techraf, goldilocks
If this question can be reworded to fit the rules in the help center, please edit the question.

  • What settings or configuration you have done? – hcheung Mar 20 '18 at 11:37
  • 1
    This is not Pi specific. What you describe is the typical symptom of failing to properly install and enable PHP on your machine. – Brick Mar 20 '18 at 12:28

Try installing mod-php ..
like apt-get -y install libapache2-mod-php7.0

Not the answer you're looking for? Browse other questions tagged or ask your own question.