0

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.

Jack H
  • 71
  • 1
  • 12
  • http://serverfault.com/questions/140954/apache-not-displaying-php-pages-offering-them-for-download-instead – quanta Sep 27 '11 at 12:39

1 Answers1

1

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.

jdw
  • 3,855
  • 2
  • 17
  • 21