Thread: PHP in Debian
View Single Post

  #1 (permalink)  
Old 04-18-2008
R.A.M.
 
Posts: n/a
Default 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/