PHP in Debian

PHP in Debian

am 18.04.2008 11:29:32 von r_ahimsa_m

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

LoadModule php5_module modules/libphp5.so

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


In diectory /var/www I created simple file phpinfo.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/

Re: PHP in Debian

am 18.04.2008 11:46:13 von unknown

Post removed (X-No-Archive: yes)

Re: PHP in Debian

am 18.04.2008 12:15:15 von r_ahimsa_m

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

I httpd.conf I had section


...


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/

Re: PHP in Debian

am 18.04.2008 12:29:38 von unknown

Post removed (X-No-Archive: yes)