From owner-freebsd-questions@FreeBSD.ORG Sun Aug 27 14:13:42 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 4CAB016A4EA for ; Sun, 27 Aug 2006 14:13:42 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81C2F44776 for ; Sun, 27 Aug 2006 14:13:38 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.8/8.13.8) with ESMTP id k7REDDeI004789; Sun, 27 Aug 2006 15:13:13 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=softfail; spf=softfail X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk k7REDDeI004789 Message-ID: <44F1A873.1070906@infracaninophile.co.uk> Date: Sun, 27 Aug 2006 15:13:07 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.5 (X11/20060801) MIME-Version: 1.0 To: Muhammad Omer Iqbal References: <001c01c6c9d6$824dd100$0202a8c0@rakaposhi> In-Reply-To: <001c01c6c9d6$824dd100$0202a8c0@rakaposhi> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigDC82C1A18FB016702FCB4C9B" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 27 Aug 2006 15:13:34 +0100 (BST) X-Virus-Scanned: ClamAV 0.88.4/1734/Sat Aug 26 21:48:40 2006 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, DKIM_POLICY_TESTING,NO_RELAYS autolearn=ham version=3.1.4 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: PHP5 and MySQL X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 14:13:42 -0000 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--