Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 0AE5163356B for ; Thu, 28 Jan 2010 19:53:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 21164-02 for ; Thu, 28 Jan 2010 23:53:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-px0-f194.google.com (mail-px0-f194.google.com [209.85.216.194]) by mail.postgresql.org (Postfix) with ESMTP id 586BF632E94 for ; Thu, 28 Jan 2010 19:53:27 -0400 (AST) Received: by pxi32 with SMTP id 32so927406pxi.15 for ; Thu, 28 Jan 2010 15:53:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=8qJvkkqAmxApwQ2PhW1psrJ9/Bw5R6hQLhk6Wz9WSrc=; b=btYylrNb3rBAeFCSAGw+aoxDWcWjqaqwJPM20uAkHhW81a92jFDU9GPEoVaEbn4MEF 2vCXvf9riVBSftHiS1Sgr1XL0XVl5Z+5R+z+kWtX1vBVxz9Y4VrqKZjzzkApYjniN9bg iWBHgxsYaxOslHI4geXmtP9iQJGtb7vZGoZFY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Fk177ZXDmDATBUXsYbPx9Xw1ZlquamfRO9qvBFQVX6qno6UGFlScxbc3XX6gqijTJn i/GmMUIj68HAsLc3VkTYip4CuDgtoqLBq85r8Sl26l6LWnm/GsUrzgkDHDIR153aGZpV c++sTGHsbAKJcBza6G6B2qRXHRbXMgxdgG9O8= Received: by 10.114.188.9 with SMTP id l9mr16026waf.125.1264722804880; Thu, 28 Jan 2010 15:53:24 -0800 (PST) Received: from ?192.168.2.65? (office.squiz.net [203.206.128.174]) by mx.google.com with ESMTPS id 20sm1132908pzk.13.2010.01.28.15.53.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 28 Jan 2010 15:53:24 -0800 (PST) Message-ID: <4B62236F.1090200@gmail.com> Date: Fri, 29 Jan 2010 10:53:19 +1100 From: Chris User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Gustavo Amarilla Santacruz CC: Bill Moran , pgsql-php@postgresql.org Subject: Re: Undefined function pg_connect() References: <4B60DC23.9020404@gmail.com> <20100128084415.4d98823a.wmoran@potentialtech.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/14 X-Sequence-Number: 4112 Gustavo Amarilla Santacruz wrote: > Thank you, Bill Moran. > > My httpd is stoped, for default. > > I used the command: service httpd start; then, the following message was > displayed: > > Starting httpd: [Thu Jan 28 20:27:39 2010] [warn] module perl_module is > already loaded, skipping > [Thu Jan 28 20:27:39 2010] [warn] module php5_module is already loaded, > skipping > httpd: Could not reliably determine the server's fully qualified domain > name, using localhost.localdomain for ServerName > [ OK ] > > > But the pg_connect function is not recognized. Does a phpinfo() page show it loading anything re: pgsql ? Anything in apache logs (/var/log/httpd/error.log probably) ? Could seLinux be involved somehow (I'm not really sure where to look for this, something in /var/log should have some info) ? On your phpinfo page, it should have something like this: Configuration File (php.ini) Path /etc/php.ini Scan this dir for additional .ini files /etc/php.d Check whether the rpm put a file in that extra directory, like: # cat /etc/php.d/pgsql.ini ; Enable pgsql extension module extension=pgsql.so If it didn't, try doing it manually (and restart httpd) and see if pgsql shows up in your phpinfo page now. -- Postgresql & php tutorials http://www.designmagick.com/