View Single Post
  #2 (permalink)  
Old 2008-03-21, 03:07 PM
topnotcher topnotcher is offline
Junior Member
 
Join Date: Jan 2006
Location: Rhode Island, USA
Posts: 5
topnotcher
Send a message via AIM to topnotcher Send a message via MSN to topnotcher
Default

Your problem is likely that although you have the module installed (and why install the php4 mod instead of 5?), you don't have it enabled.

At any rate, your problem is indicative of the fact that the apache server doesn't know how to handle a .php file. The following line must be present in your httpd.conf:

AddType application/x-httpd-php .php

Further, you probably have not enabled the module. (LoadModule directive required.)

I haven't personally used ubuntu (and never intend to), but I do happen to admin some debian boxes (I hate debian too). On the debian boxes, the /etc/apache2 directory contains a mods-available and a mods-enabled directory. In my mods-available directory, I have a php5.load file and a php5.conf file. The .conf file has the above AddType directive, and the .load has the LoadModule. The apache2.conf file Includes *.load and *.conf from mods-enabled, so to enable the php 5 module, I would simply :

[as root]
cd /etc/apach2
ln -s mods-available/php5.load mods-enabled/php5.load
ln -s mods-available/php5.conf mods-enabled/php5.conf
/etc/init.d/apache2 reload


--Greg
Reply With Quote