PHP in Debian

This is a discussion on PHP in Debian within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I installed Debian with Apache and PHP. I started configuring. In httpd.conf file I entered changes: LoadModule php5_module ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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/
  #2 (permalink)  
Old 04-18-2008
R.A.M.
 
Posts: n/a
Default 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/
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:44 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0