Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Why is PHP script downloaded instead of executed
What causes PHP pages to consistently download instead of running normally

I have searched for this issue and did not find anything, so I apoligise if there is in fact an article on this matter.

Basically, I installed Apache and PHP via aptitude install <package> on Debian 6. HTML pages render in a browser perfectly fine. When I try to render a page with the extension *.php the file is downloaded, not parsed and the output not shown. So far I have been testing a simple <?php phpinfo(); ?>


share|improve this question

marked as duplicate by quanta, mailq, Bryan, Brent Pabst, growse Dec 14 '12 at 14:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.… – quanta Sep 27 '11 at 12:39
up vote 1 down vote accepted

You have not installed the Apache PHP package that links them together. On Ubuntu, a Debian derivative, the package is called libapache2-mod-php5 . I am not sure if it has the same name in Debian 6, but it will likely be similar.

share|improve this answer

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