Date: Thu, 14 Oct 2004 11:37:12 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: David Banning <david+dated+1098177173.950926@skytracker.ca> Cc: questions@freebsd.org Subject: Re: configuring php to work with mysql Message-ID: <20041014103712.GA99364@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20041014091251.GA60576@skytrackercanada.com> References: <20041014091251.GA60576@skytrackercanada.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 14, 2004 at 05:12:51AM -0400, David Banning wrote: > I am having to reinstall my php and apache 1.3. I installed apache13 > straight from the ports with no options, and then I installed > php4_mysql from the ports also. php is running but it does not > connect to mysql.=20 >=20 > In looking at phpinfo() I notice the configuration options; >=20 > './configure' '--enable-versioning' '--enable-memory-limit' '--with-layou= t=3DGNU' '--with-config-file-scan-dir=3D/usr/local/etc/php' '--disable-all'= '--with-regex=3Dphp' '--with-apxs=3D/usr/local/sbin/apxs' '--prefix=3D/usr= /local' 'i386-portbld-freebsd4.8'=20 >=20 > don't seem to have any reference to mysql. Stange, considering that > the port, specifically is entitled "php4_mysql". To get the most minor nit out of the way first: the port is called php4-mysql. And, no you won't see MySQL amongst the configuration options for the base PHP executable. That's because nowadays the MySQL support is built completely separately as a loadable module. You should have read the 20040719 entry in /usr/ports/UPDATING where this is explained. Try running: % php -m which will tell you about all of the loadable modules you've got available. Look more closely at the phpinfo() output -- there should be a whole section on MySQL later on. If that isn't there, then you need to pay some attention to your /usr/local/etc/php.ini file: if you use the default one provided by the lang/php4 port, everything should just work. 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 --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBblbYiD657aJF7eIRAjN5AKCfxWj16WvLJZXaLZXtZlqzbeojwACffNC7 0KEPFwc0+6bJhTBO1v3ngIY= =PoAe -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041014103712.GA99364>