From owner-freebsd-questions@FreeBSD.ORG Sat Dec 4 04:12:52 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B0D016A4CE for ; Sat, 4 Dec 2004 04:12:52 +0000 (GMT) Received: from ns1.tiadon.com (SMTP.tiadon.com [69.27.132.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0F7643D1D for ; Sat, 4 Dec 2004 04:12:49 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [69.27.131.0] ([69.27.131.0]) by ns1.tiadon.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 3 Dec 2004 22:15:17 -0600 Message-ID: <41B13952.8000303@daleco.biz> Date: Fri, 03 Dec 2004 22:13:06 -0600 From: "Kevin D. Kinsey, DaleCo, S.P." User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041023 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?M=E1rio_Gamito?= References: <41B1159B.4070408@netual.pt> In-Reply-To: <41B1159B.4070408@netual.pt> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 04 Dec 2004 04:15:18.0433 (UTC) FILETIME=[DD10E110:01C4D9B7] cc: freebsd-questions@freebsd.org Subject: Re: Suport for MySQL and Postgresql in PHP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2004 04:12:52 -0000 Mário Gamito wrote: > Hi, > > Sorry for this newbie question :( > > I've installed Apache-PHP sucessfully, but PHP lacks suport for MySQL > and Postgresql. > > Are there any ports for that, or must i edit PHP's Makefile to include > suport for both databases ? > > I've searched all around the ports colection, but didn't find anything :( > > Any help would be apreciated. > > Warm Regards. According to /usr/ports/UPDATING: 20040719: AFFECTS: users of PHP AUTHOR: ale@FreeBSD.org The old lang/php4 and lang/php5 ports have been splitted into 'base' PHP, PEAR, and shared extensions to allow more flexibility and add new features. Upgrading your current PHP installation will result in a 'base' PHP installation (no PEAR and no extensions). PEAR can be found in the new devel/php4-pear and devel/php5-pear ports, while the set of PHP extensions to install can be choosen via the meta-ports lang/php4-extensions and lang/php5-extensions, or installing singular extensions individually. If you have a previous php.ini configuration file, be sure to comment out the extension_dir parameter, since the correct path is statically compiled into the PHP binary. For an overview of the modules used with the old PHP binary, use the command "php -m". Now, according to /usr/ports/lang/php4-extensions/Makefile, installing this port will get you support for MySQL. # cd /usr/ports/lang/php4-extensions # make install clean However, PostGres support is optional, so if you want both: # cd /usr/ports/lang/php4-extensions # make WITH_PGSQL install clean HTH, Kevin Kinsey