pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Warren Massengill <warrenmassengill@hotmail.com>
To: hierophant@pcisys.net
Cc: pgsql-php@postgresql.org
Subject: Re: form response
Date: Fri, 20 Sep 2002 09:28:26 -0500
Message-ID: <F115Z4mF1IT18olkDTM0000014f@hotmail.com> (raw)




>From: Keary Suska <hierophant@pcisys.net>
>To: Postgres-PHP <pgsql-php@postgresql.org>
>Subject: Re: [PHP] form response
>Date: Thu, 19 Sep 2002 22:59:14 -0600
>
>on 9/19/02 5:52 PM, warrenmassengill@hotmail.com purportedly said:
>
> > In:
> > /etc/httpd/conf/httpd.conf
> > AddType application/x-httpd-php .php
> > (appears as above plus an entry for each of php2,3,&4)
> > LoadModule php4_module        modules/libphp4.so
> > LoadModule php_module         modules/mod_php.so
> >
> > These were all uncommented in the generic installation of RedHat 7.2.
> > Where else can I look?
> >
> > I can create forms in php and tables in PostgreSQL but according to
> > phpinfo(), php is not configured for PostgreSQL.
> > If I survive this problem, that one is on the horizon.
>
>Hmm, if the above directives appear in your conf in that order I think that
>is the problem. I am surprised that Apache isn't croaking with an error,
>since the module may need to be loaded before Apache understands what to do
>with x-httpd-php. That may not truly be the case, but it does seem suspect.
>What happens when you move the AddType to below the AddModule?

No, I reversed the sequence. These directives are at the very bottom,
under the caption 'Document Type' in 'Section 2 - Main Server Environment'.

<IfModule mod_php4.c>
   AddType application/x-httpd-php .php .php4 .php3 .phtml
   AddType application/x-httpd-php-source .phps
</IfModule>

'Section 1 - Global Environment' contains the modules under the caption 
'Dynamic Shared Object'

Do the Apache
>error logs have anything to say?

They reflect my manually stopping and restarting Apache - and do indicate 
that PHP is running.

Do these directives appear in a context
>(such as <Directory>?

Yes. See above.

How are you accessing phpinfo() if PHP scripts don't
>execute?

That is strange! I cannot access phpinfo() inside a php file
(not from Mozilla nor from a terminal window) but I did run it
directly from inside Mozilla - not sure how, now. Remember, Mozilla
runs the PHP form script and produces the form. It only breaks down
when I try to call a PHP script from inside another script.

>Are you *sure* you built PHP as a module and *not* as a cgi?

No. I did not build PHP at all. I did not even select it. RedHat
just included it with Apache.

Thanks,
Warren


>
>Keary Suska
>Esoteritech, Inc.
>"Leveraging Open Source for a better Internet"
>
>
>---------------------------(end of broadcast)--------------------------


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




view thread (5+ messages)  latest in thread

Message-ID: <F115Z4mF1IT18olkDTM0000014f@hotmail.com>
Permalink:  ../F115Z4mF1IT18olkDTM0000014f@hotmail.com/
Also on:    postgresql.org/message-id/F115Z4mF1IT18olkDTM0000014f@hotmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: warrenmassengill@hotmail.com, hierophant@pcisys.net
  Subject: Re: form response
  In-Reply-To: <F115Z4mF1IT18olkDTM0000014f@hotmail.com>
  References: <F115Z4mF1IT18olkDTM0000014f@hotmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox