Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2003 20:55:10 -0700
From:      Robin Schoonover <end@endif.cjb.net>
To:        "Neil Hawkins" <nchawkins90@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Apache, PHP, and SquirrelMail
Message-ID:  <20031104205510.08096d07.end@endif.cjb.net>
In-Reply-To: <Law10-F59LOLWCpz8S40001c0b4@hotmail.com>
References:  <Law10-F59LOLWCpz8S40001c0b4@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 05 Nov 2003 03:44:04 +0000, "Neil Hawkins"
<nchawkins90@hotmail.com> wrote:
> I am new to FreeBSD and am trying to figure a few things out.  I have 
> installed QMAIL, APACHE, PHP4, and SquirrelMail.  Apache seems to be
> working fine because I can browse the directory lising for
> /usr/local/www/data folders.  However, when I try to browse the
> SquirrelMail folder, it just displays the text code of the index.php
> file.  I am assuming that PHP4 is either not installed correctly, not
> running, or not configured appropriately.  Can someone help me out here?
> 

You need to tell apache about mod_php4.  In apache2, I have these extra
lines in the configuration file.

LoadModule php4_module        libexec/apache2/libphp4.so

DirectoryIndex index.html index.html.var index.php

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

You don't want to have 'AddHandler php .php' in httpd.conf  In an earlier
version of php4, I did have that and it worked fine, but when I upgraded
php4 it stopped working (showed code only like it is for you), so I had to
take out that line.

-- 
Robin Schoonover (aka End)
#
# Actual newspaper headline:
#     Something Went Wrong in Jet Crash, Expert Says



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031104205510.08096d07.end>