Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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(); ?>

Thanks.

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.

    
serverfault.com/questions/140954/… –  quanta Sep 27 '11 at 12:39
add comment

1 Answer 1

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
add comment

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