From owner-freebsd-questions@FreeBSD.ORG Wed Jul 21 19:15:31 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 60E6C16A4CF for ; Wed, 21 Jul 2004 19:15:31 +0000 (GMT) Received: from corb.mc.mpls.visi.com (corb.mc.mpls.visi.com [208.42.156.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DE2E43D2D for ; Wed, 21 Jul 2004 19:15:29 +0000 (GMT) (envelope-from drue@therub.org) Received: from egypt.therub.org (drue.dsl.visi.com [209.98.146.43]) by corb.mc.mpls.visi.com (Postfix) with ESMTP id 102628390; Wed, 21 Jul 2004 14:15:27 -0500 (CDT) Received: by egypt.therub.org (Postfix, from userid 1001) id 3EB9EBC75; Wed, 21 Jul 2004 14:16:49 -0500 (CDT) Date: Wed, 21 Jul 2004 14:16:49 -0500 From: Dan Rue To: Robert Munn Message-ID: <20040721191649.GA70673@therub.org> References: <20040721185355.GA13196@pcp243550pcs.howard01.md.comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040721185355.GA13196@pcp243550pcs.howard01.md.comcast.net> User-Agent: Mutt/1.4.2.1i cc: questions@freebsd.org Subject: Re: Apache/mod_php4/mysql issue 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: Wed, 21 Jul 2004 19:15:31 -0000 On Wed, Jul 21, 2004 at 02:53:55PM -0400, Robert Munn wrote: > I recently upgraded apache2 and mod_php4 using portupgrade. Now all my scripts that > reference mysql fail with the error message: > > PHP Fatal error: Call to undefined function: mysql_connect() in /usr/users/munn/public_html/Testing/MySQL.php > >From /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. You need to install /usr/ports/databases/php4-mysql, and you'll probably need to change your extension_dir in your php.ini to point to /usr/local/lib/php/20020429 (or whichever dir you have in there). Dan