Re: Apache, PHP, and PHPGroupware

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ric Fischer
Date:  
To: plug-discuss
Subject: Re: Apache, PHP, and PHPGroupware
Hi David,

I'm still thinking, as I said earlier, that you may need to recompile
your Apache, especially if you're using PHP as a module of Apache. For
example, when I do a raw connection to my server, among some of the
other lines, I get:

Server: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8
mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.9 FrontPage/5.0.2.2635
mod_ssl/2.8.22 OpenSSL/0.9.7a

(All on one line.)

This is sent before the page/document/file you're requesting.

Notice that Apache itself is reporting that it can serve PHP version 4.3.9.

On Windows (sorry, gang, but I'm too new to Linux to know how to do
this, yet), I use a utility called SamSpade (Windows download at
SamSpade.org site[1]).

SamSpade (the program, not the site), allows me to connect to a
website and get the full response back, from the beginning of the
connection to the site until the end of the connection. I see it all
in raw form (plain, ugly text).

It's a handy tool and I'd love to know how I can do the same kind of
thing in Linux.

But, anyway, take a look at your raw response from your server and see
if it includes mention of PHP on the Apache line.

OK. I just looked at the documentation[2] and it appears the
instructions for Linux/Unix implementation with Apache as web server
do require some configuration and compiling.

Fortunately, on my web server, I have cpanel installed. As a result, I
have a /scripts folder with a ton of scripts in there, including one,
called easyapache, that configs Apache and (optionally) PHP for me and
then recompiles it all with the correct options. If I want to add a
new module to Apache or PHP, I turn it on in /scripts/easyapache, save
it, and then the script writes out the conf files and runs all the
make commands for me. It sure takes the headaches out of the process.


[1] http://www.samspade.org/

[2] http://www.php.net/manual/en/install.unix.php


--
Ric Fischer


On Fri, 7 Jan 2005 23:36:48 -0700, David Demland <> wrote:
> The only line I was missing was the AddModule line. I have added it but I
> still have the same problem. File with a .php3, or .php4, extension run just
> fine. Files with a .php extension will only download. This would lead me to
> think that the problem is in the AddType but I do not see what I am missing.
>
> Is there anything else that might be causing the problem?
>
> David

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss