Date: Sat, 18 Sep 2004 12:14:07 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: asolomon15 <asolomon15@nyc.rr.com> Cc: freebsd-questions@freebsd.org Subject: Re: can't get support for postgresql or mysql Message-ID: <20040918111407.GA38377@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <414B3154.6020208@nyc.rr.com> References: <414B3154.6020208@nyc.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040918111407.GA38377>