Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2006 15:13:07 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Muhammad Omer Iqbal <omer@omeriqbal.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: PHP5 and MySQL
Message-ID:  <44F1A873.1070906@infracaninophile.co.uk>
In-Reply-To: <001c01c6c9d6$824dd100$0202a8c0@rakaposhi>
References:  <001c01c6c9d6$824dd100$0202a8c0@rakaposhi>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigDC82C1A18FB016702FCB4C9B
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

>Muhammad Omer Iqbal wrote:

>> Looking through phpinfo, I do not find mysql or mysqli installed, even=
=20
>> though I have enabled, remade and reinstalled both MySQL and PHP5. In =

>> fact, I think that my PHP5 is no longer remade, it just reconfigures=20
>> it and reinstalls it because the build date shows as Aug 22 even=20
>> though I did it today and my server date shows as Aug 27. I installed =

>> both of these using the ports collection, but then I had to manually=20
>> download MySQL because of versioning issues, and untar and install it

The PHP5 port has been divided into a fairly large number of modules.  To=

add MySQL support within PHP5, simply install the databases/php5-mysql
port. (Or php5-mysqli, but only if you're running mysql-4.1.x)

Note that php5-mysql will cause one of the mysql-client ports to be
installed as a dependency -- unless you install one of the other versions=

before hand, that will get you the mysql 5.0.x client.  You will still
need to install one of the mysql server ports, unless your DB is physical=
ly
hosted on a different machine.

Oh -- and the other trap for newbies is that you need to 'make config'
in the lang/php5 port and make sure the 'Apache' box is checked before
you'll get the Apache PHP5 module built and installed.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       7 Priory Courtyard
                                                      Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW


--------------enigDC82C1A18FB016702FCB4C9B
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE8ah58Mjk52CukIwRCDOKAJ9Rp4TSmkoJsv0lR54P8kb5FlX+aACfeDYH
MsgEP9OuAX+ucsDWgAdEVvI=
=vCEt
-----END PGP SIGNATURE-----

--------------enigDC82C1A18FB016702FCB4C9B--



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