From owner-freebsd-questions@FreeBSD.ORG Sat Sep 18 11:14:15 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 1CD4016A4CE for ; Sat, 18 Sep 2004 11:14:15 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id A107E43D39 for ; Sat, 18 Sep 2004 11:14:13 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i8IBE8kh038479 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 18 Sep 2004 12:14:08 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i8IBE86s038478; Sat, 18 Sep 2004 12:14:08 +0100 (BST) (envelope-from matthew) Date: Sat, 18 Sep 2004 12:14:07 +0100 From: Matthew Seaman To: asolomon15 Message-ID: <20040918111407.GA38377@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , asolomon15 , freebsd-questions@freebsd.org References: <414B3154.6020208@nyc.rr.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline In-Reply-To: <414B3154.6020208@nyc.rr.com> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Sat, 18 Sep 2004 12:14:08 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: can't get support for postgresql or mysql 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, 18 Sep 2004 11:14:15 -0000 --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 17, 2004 at 02:47:48PM -0400, asolomon15 wrote: > Hello everyone... I have a problem getting support for mysql within=20 > php. I am running freebsd 5.2.1 and php 4.3.8. When I tried to run a= =20 > php script that uses a mysql db connection, I got this error > *Fatal error*: Call to undefined function: mysql_connect() in >=20 > I did a phpinfo() and noticed i didn't see any mysql or postgresql=20 > support in it. I then tried to install php4-mysql module from the=20 > freebsd ports and still no luck. I also tried reinstalling both and I= =20 > still end up in the same situation. I did a google search for how to=20 > load a mysql module but I keep getting articles about how to load it=20 > with apache. What should I do? =20 Installing the php4-mysql module is the correct first step. The question is why that new module isn't being loaded as part of mod_php4? Eliminating the obvious: did you kill and restart apache /after/ installing php4-mysql? If that doesn't work, then what is the value of the 'extension_dir' property in /usr/local/etc/php.ini ? By default it should be commented out: ; Directory in which the loadable extensions (modules) reside. ; extension_dir =3D "./" Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --AqsLC8rIMeq19msA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBTBh/iD657aJF7eIRAmPgAJ4qozYFacsVOTRelDJWdd6bJ+UaqQCglSvI qbJi4Dr3hGVD45yucTr5INM= =auCS -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--