Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

www.webdp.net, Event 9 IIS log failed to write entry, wwwxxx jeffs, Catastrophic failure Unexpected method call sequence. 0x8000ffff (-2147418113)., ksh lock a file, [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed, sed: -e expression #1, char 1: unterminated address regex, procmail + change subject, w2ksp4.exe download, /proc/kallsyms format

Links

XODOX
Impressum

#1: PHP in Debian

Posted on 2008-04-18 11:29:32 by 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
<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/

Report this message

#2: Re: PHP in Debian

Posted on 2008-04-18 11:46:13 by unknown

Post removed (X-No-Archive: yes)

Report this message

#3: Re: PHP in Debian

Posted on 2008-04-18 12:15:15 by 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

<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/

Report this message

#4: Re: PHP in Debian

Posted on 2008-04-18 12:29:38 by unknown

Post removed (X-No-Archive: yes)

Report this message