From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 18:53:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04718106566B for ; Wed, 31 Dec 2008 18:53:25 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: from rv-out-0304.google.com (rv-out-0304.google.com [209.85.198.214]) by mx1.freebsd.org (Postfix) with ESMTP id D95488FC13 for ; Wed, 31 Dec 2008 18:53:24 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: by rv-out-0304.google.com with SMTP id b20so13560163rvf.31 for ; Wed, 31 Dec 2008 10:53:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.115.109.18 with SMTP id l18mr9506773wam.8.1230749603697; Wed, 31 Dec 2008 10:53:23 -0800 (PST) Message-ID: <0016364574acef9556045f5c38b7@google.com> Date: Wed, 31 Dec 2008 18:53:23 +0000 From: af300wsm@gmail.com To: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Using PHP PDO on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 18:53:25 -0000 Hello, So, I've installed from ports the following: sniper# pkg_info | grep php php5-5.2.6_2 PHP Scripting Language php5-pdo-5.2.6_2 The pdo shared extension for php php5-pdo_pgsql-5.2.6_1 The pdo_pgsql shared extension for php php5-pgsql-5.2.6_1 The pgsql shared extension for php I noticed in /usr/local/etc/php there is a file named, extensions.ini with the following contents: sniper# cat php/extensions.ini extension=pgsql.so extension=pdo.so extension=pdo_pgsql.so However, when I try to use the PDO in my php script I get this error from the interpreter: could not find driver Now, I don't know what I'm missing. I've tried renaming /usr/local/etc/php.ini-recommended to php.ini. However, after reloading apache, I'm still getting the, "could not find driver," error. So, what's the secret to using this extension on FreeBSD? Andy