From owner-freebsd-ports@FreeBSD.ORG Thu Jul 21 00:02:00 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4DD6316A423 for ; Thu, 21 Jul 2005 00:02:00 +0000 (GMT) (envelope-from edwin@mavetju.org) Received: from mail3out.barnet.com.au (mail3out.barnet.com.au [202.83.176.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88F1343D53 for ; Thu, 21 Jul 2005 00:01:51 +0000 (GMT) (envelope-from edwin@mavetju.org) Received: by mail3out.barnet.com.au (Postfix, from userid 27) id 96AAF877CF2; Thu, 21 Jul 2005 10:01:50 +1000 (EST) X-Viruscan-Id: <42DEE5EE000125124EE22F@BarNet> Received: from mail3-auth.barnet.com.au (mail3.barnet.com.au [202.83.176.16]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.barnet.com.au", Issuer "BarNet Root Certificate Authority" (verified OK)) by mail3.barnet.com.au (Postfix) with ESMTP id 716F3877CA8; Thu, 21 Jul 2005 10:01:50 +1000 (EST) Received: from k7.mavetju (edwin-3.int.barnet.com.au [10.10.12.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "edwin.adsl.barnet.com.au", Issuer "BarNet Root Certificate Authority" (not verified)) by mail3-auth.barnet.com.au (Postfix) with ESMTP id 18A99877CA4; Thu, 21 Jul 2005 10:01:50 +1000 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id D557C63E8; Thu, 21 Jul 2005 10:01:48 +1000 (EST) Date: Thu, 21 Jul 2005 10:01:48 +1000 From: Edwin Groothuis To: "Jeffrey C. Webb" Message-ID: <20050721000148.GC1186@k7.mavetju> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Cc: ports@freebsd.org Subject: Re: php / pg question X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2005 00:02:00 -0000 On Wed, Jul 20, 2005 at 04:04:19PM -0400, Jeffrey C. Webb wrote: > Yes, I am new to FreeBSD. I have installed apache 2.0, php5.0 and PortgreSQL 8.0 using the following ports: > postgresql80-server > apache20 > php5 > > I can run php script via the web, so I think that php and apache are ok. Problem is, that I can not figure out how to get php configured to use postgresql. PHP does not know where any of the pg files are and either do I :o) ie. I put a reference to a php pg command in a script and php has no idea what it is for. > Am I supposed to run lang/php5-extensions? PHP5 extensions is a simple front-end to install all */php5-* modules. > Do I need to install databases/php5-pgsql? That's a way. Or: in lang/php5-extensions, run "make" which will allow you to choose which extensions you want and then "make depends" which installs all these extensions. Restart your webbrowser et voila, your phpinfo() shows that the modules are available. Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/