Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jul 2004 14:16:49 -0500
From:      Dan Rue <drue@therub.org>
To:        Robert Munn <munn@pcp243550pcs.howard01.md.comcast.net>
Cc:        questions@freebsd.org
Subject:   Re: Apache/mod_php4/mysql issue
Message-ID:  <20040721191649.GA70673@therub.org>
In-Reply-To: <20040721185355.GA13196@pcp243550pcs.howard01.md.comcast.net>
References:  <20040721185355.GA13196@pcp243550pcs.howard01.md.comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040721191649.GA70673>