Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 12DAA6337A8 for ; Fri, 10 Apr 2009 21:49:27 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 48521-04 for ; Fri, 10 Apr 2009 21:49:23 -0300 (ADT) X-Greylist: delayed 00:09:35.302314 by SQLgrey-1.7.6 Received: from mail.morphoss.com (hoppy.mcmillan.net.nz [202.78.240.82]) by mail.postgresql.org (Postfix) with ESMTP id BB2AE633758 for ; Fri, 10 Apr 2009 21:49:23 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mail.morphoss.com (Postfix) with ESMTP id 723C523664; Sat, 11 Apr 2009 12:37:07 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at mail.morphoss.com Received: from mail.morphoss.com ([127.0.0.1]) by localhost (hoppy.mcmillan.net.nz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gJGRF2oxBQq5; Sat, 11 Apr 2009 12:37:03 +1200 (NZST) Received: from [192.168.55.193] (218-101-8-114.xtreme.net.nz [218.101.8.114]) (Authenticated sender: andrew@mail.morphoss.com) by mail.morphoss.com (Postfix) with ESMTPSA id E84E72365E; Sat, 11 Apr 2009 12:37:02 +1200 (NZST) Subject: Re: phpinfo() doesn't show postgres as a configured module From: Andrew McMillan To: my extraidentity Cc: pgsql-php@postgresql.org In-Reply-To: (sfid-20090411_123007_109738_7F7F8BBC) References: (sfid-20090411_123007_109738_7F7F8BBC) Content-Type: text/plain Date: Sat, 11 Apr 2009 12:37:00 +1200 Message-Id: <1239410220.21038.1446.camel@happy.mcmillan.net.nz> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/2 X-Sequence-Number: 4007 On Fri, 2009-04-10 at 19:27 -0500, my extraidentity wrote: > When I run the PHP function phpinfo() on my server that has > both Apache and PHP on it, it doesn't show postgres as a > configured module. I am running Apache version 2.0.54 and PHP > version 5.2.8 (however the phpinfo() function displays that it > is version 5.0.4 ; what is up with that???) > > What command do I need to run to get the postgres module to > work with PHP? I have tried to configure the server this way > and it didn't seem to fix it: > > ./configure --with-pgsql=/usr/local/pgsql/ > --with-apxs2=/usr/local/apache2/bin/apxs > make > > Any ideas what I am doing wrong? You need to enable it in your php.ini file as an extension, like: extension=pgsql.so Cheers, Andrew. ------------------------------------------------------------------------ andrew (AT) morphoss (DOT) com +64(272)DEBIAN Be cheerful while you are alive. -- Phathotep, 24th Century B.C. ------------------------------------------------------------------------