Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 99763 invoked from network); 2 Nov 2006 18:58:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2006 18:58:37 -0000 Received: (qmail 19095 invoked by uid 500); 2 Nov 2006 18:58:36 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 19077 invoked by uid 500); 2 Nov 2006 18:58:36 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 19066 invoked by uid 99); 2 Nov 2006 18:58:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 10:58:36 -0800 X-ASF-Spam-Status: No, hits=4.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.142.206.239] (HELO smtp106.plus.mail.mud.yahoo.com) (68.142.206.239) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 02 Nov 2006 10:58:18 -0800 Received: (qmail 71416 invoked from network); 2 Nov 2006 18:57:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:In-Reply-To:References:Mime-Version:X-Priority:Content-Type:Message-Id:From:Subject:Date:To:X-Mailer; b=sVzNYyyNwZ/pT05sD2LkyYrf3BIlZCMs8epK/vEZScPVpmSLJ8fK61n6Yj0f8SUhNWElqr3+HeJE2zl0SIvuyxlY8THSwgA7nxc7WiLKqlAVajbF95YG2NDWWnhrOcCKngnLb/hLhYn6rY7o9rilaNq4IRXW0xBXBQ5BjM4GftI= ; Received: from unknown (HELO ?192.168.0.3?) (edlazor@67.170.140.175 with plain) by smtp106.plus.mail.mud.yahoo.com with SMTP; 2 Nov 2006 18:57:56 -0000 In-Reply-To: <001201c6feaf$24ce4e70$0201a8c0@BillsOffice> References: <001201c6feaf$24ce4e70$0201a8c0@BillsOffice> Mime-Version: 1.0 (Apple Message framework v752.2) X-Priority: 3 Content-Type: multipart/alternative; boundary=Apple-Mail-186--496919299 Message-Id: <4130BD7A-8896-4A3E-8B5D-8D29E582B91E@yahoo.com> From: Ed Lazor Date: Thu, 2 Nov 2006 10:57:54 -0800 To: users@httpd.apache.org X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Apache 2.2.3 and PHP 5.1.6 --Apple-Mail-186--496919299 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Thanks, that helped a lot. I discovered two problems... 1. I'd changed configure, but make install wasn't replacing the old httpd.conf file. I deleted it, ran make install again and this time noticed a very different httpd.conf file. 2. I went to the LoadModules area and added: LoadModule php5_module "modules/libphp5.so" and then I went into the mod_mime area and added the two AddType entries. Restarted the server and now it's working, handling PHP5. Thanks, Ed On Nov 2, 2006, at 10:46 AM, Bill Angus wrote: > Here's what I do (Windows environment)... works fine for me. > > LoadModule php5_module "C:\php\php5apache2_2.dll" > PHPIniDir "C:/php" > > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > > Bill Angus, MA > http://www.psychtest.com > ----- Original Message ----- > From: Ed Lazor > To: users@httpd.apache.org > Sent: Thursday, November 02, 2006 10:36 AM > Subject: [users@httpd] Apache 2.2.3 and PHP 5.1.6 > > I've been Googling and searching the mailing list archive with no > luck, so I thought I'd try asking for help... > > I'm getting an error of: Invalid command 'AddType' when trying to > start Apache. > > The PHP 5 installation instructions say to modify httpd.conf and add > > LoadModule php5_module libexec/libphp5.so > AddModule mod_php5.c > AddType application/x-httpd-php .php .phtml > > I did that, but then Apache said AddModule was an invalid command. I > commented it out and now AddType is causing problems. > > Also, I read that the AddModule command has been removed in Apache > 2.2.3, but that leaves me wondering... how do I configure Apache > 2.2.3 to use PHP? > > I run httpd -l and it tells me that the mod_so.c is one of the > compiled in modules. > > Thanks, > Ed > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server > Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > --Apple-Mail-186--496919299 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Thanks, that helped a lot.=A0 I = discovered two problems...

1.=A0 I'd changed = configure, but make install wasn't replacing the old httpd.conf file.=A0 = I deleted it, ran make install again and this time noticed a very = different httpd.conf file.

2.=A0 I went to the = LoadModules area and added:

LoadModule php5_module = "modules/libphp5.so"

and then I went into the = mod_mime area and added the two AddType entries.

Restarted the server and = now it's working, handling PHP5.

Thanks,
Ed


On Nov 2, 2006, at = 10:46 AM, Bill Angus wrote:

Here's what I do = (Windows environment)... works fine for = me.
=A0


<IfModule mod_mime.c>
=A0AddType = application/x-httpd-php-source .phps
----- Original Message -----
To:

I've been Googling and searching the = mailing list archive with no=A0=A0
luck, so I thought I'd try = asking for help...

I'm getting an error of:=A0 Invalid command = 'AddType' when trying to=A0=A0
start Apache.

The = PHP 5 installation instructions say to modify httpd.conf and = add

=A0=A0=A0=A0=A0=A0 LoadModule php5_module = libexec/libphp5.so
=A0=A0=A0=A0=A0=A0 AddModule mod_php5.c
=A0=A0=A0= =A0=A0=A0 AddType application/x-httpd-php .php .phtml

I did that, = but then Apache said AddModule was an invalid command.=A0 I=A0=A0
commented it out and now = AddType is causing problems.

Also, I read that the AddModule = command has been removed in Apache=A0=A0
2.2.3, but that leaves me = wondering... how do I configure Apache=A0=A0
2.2.3 to use PHP?

I = run httpd -l and it tells me that the mod_so.c is one of the=A0=A0
compiled in = modules.

Thanks,
Ed


---------------------------------= ------------------------------------
The official User-To-User = support forum of the Apache HTTP Server Project.
See <
=A0=A0=A0

= --Apple-Mail-186--496919299--