PHP in Debian

Hello,
I installed Debian with Apache and PHP. I started configuring.
In httpd.conf file I entered changes:

LoadModule php5_module modules/libphp5.so
<IfModule mod_mime.c>
...
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
...
</IfModule>

In diectory /var/www I created simple file phpinfo.php:

<?php
phpinfo();
?>

Then I rebooted my computer.
The problem is that when I am trying to open phpinfo.php in browser using:

localhost/phpinfo.php

then instead of result of phpinfo() I have file download popup window.
I have veryfied: The processes for apache are running.

I configured LAMP in Fedora Linux and that time I had no problems.

Please help!
/RAM/
r_ahimsa_m [ Fr, 18 April 2008 11:29 ] [ ID #1945285 ]

Re: PHP in Debian

Post removed (X-No-Archive: yes)
Notifier Deamon [ Fr, 18 April 2008 11:46 ] [ ID #1945287 ]

Re: PHP in Debian

Dnia Fri, 18 Apr 2008 11:46:13 +0200, Davide Bianchi napisaƂ(a):
> Why the 'ifmodule' ?

I httpd.conf I had section

<IfModule mod_mime.c>
...
</IfModule>

with a list of AddType lines. So I added these two lines into the section:

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

/RAM/
r_ahimsa_m [ Fr, 18 April 2008 12:15 ] [ ID #1945288 ]

Re: PHP in Debian

Post removed (X-No-Archive: yes)
Notifier Deamon [ Fr, 18 April 2008 12:29 ] [ ID #1945289 ]
Webserver » alt.apache.configuration » PHP in Debian

Vorheriges Thema: out of memory & mod_security
Nächstes Thema: child process exited with status 128 -- Restarting