From owner-freebsd-questions@FreeBSD.ORG Sun Aug 27 12:25:57 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 A7FAE16A4DE for ; Sun, 27 Aug 2006 12:25:57 +0000 (UTC) (envelope-from gerard@seibercom.net) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5D5A44788 for ; Sun, 27 Aug 2006 12:25:56 +0000 (GMT) (envelope-from gerard@seibercom.net) Received: by wx-out-0506.google.com with SMTP id i27so1365458wxd for ; Sun, 27 Aug 2006 05:25:56 -0700 (PDT) Received: by 10.70.100.1 with SMTP id x1mr7543206wxb; Sun, 27 Aug 2006 05:25:56 -0700 (PDT) Received: from scorpio.seibercom.net ( [67.189.184.224]) by mx.gmail.com with ESMTP id h10sm5484113wxd.2006.08.27.05.25.55; Sun, 27 Aug 2006 05:25:55 -0700 (PDT) Received: from scorpio.seibercom.net (localhost [127.0.0.1]) by scorpio.seibercom.net (Postfix) with ESMTP id 5932BC434; Sun, 27 Aug 2006 08:25:54 -0400 (EDT) Received: from [192.168.0.4] (boss.seibercom.net [192.168.0.4]) (Authenticated sender: gerard@scorpio.seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTP id A5186C41C; Sun, 27 Aug 2006 08:25:53 -0400 (EDT) Date: Sun, 27 Aug 2006 08:25:58 -0400 From: Gerard Seibert To: freebsd-questions@freebsd.org Organization: Seibercom In-Reply-To: <001301c6c9cf$abd89930$0202a8c0@rakaposhi> References: <20060827072419.8CFE.GERARD@seibercom.net> <001301c6c9cf$abd89930$0202a8c0@rakaposhi> X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Message-Id: <20060827082549.2F9B.GERARD@seibercom.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="===[S/MIME_RFC2633]===44F18F4D.2F1D4DC==="; protocol="application/x-pkcs7-signature"; micalg="sha1" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.25 [en] X-Virus-Scanned: ClamAV using ClamSMTP Cc: Muhammad Omer Iqbal Subject: Re: PHP5 and MySQL X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 12:25:57 -0000 --===[S/MIME_RFC2633]===44F18F4D.2F1D4DC=== Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Muhammad Omer Iqbal wrote: > I have gone through the mysql and php docs and there are some possible > solutions listed, none of those worked. Of course, I tried looking for a > solution first before sending it here, this is like one of the last resor= t > places, don't want to bug people with something trivial or easily fixable. >=20 > I can post the problem here, but again, I was not too sure if this is the > right place to post the questions. Anyhow, here it is. >=20 > PHP5 documentation says that mysql and mysqli libraries are no longer > shipped with PHP and refers to MySQL page and documentation on how to > install PHP support for MySQL. The precise solution is here: > http://dev.mysql.com/doc/refman/5.0/en/php-mysql-mysqli.html >=20 > I first tried to enable only mysql, and then both mysql and mysqli. I get > the same error in both cases on my web-server (MySQL is installed on the > same server too): >=20 > Fatal error: Class 'mysqli' not found in > /usr/local/www/apache22/data/test.php on line 7 >=20 > Looking through phpinfo, I do not find mysql or mysqli installed, even > though I have enabled, remade and reinstalled both MySQL and PHP5. In fac= t, > I think that my PHP5 is no longer remade, it just reconfigures it and > reinstalls it because the build date shows as Aug 22 even 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 download MySQL because o= f > versioning issues, and untar and install it using the command line. Please don't top post! What version issue are you referring to? I am assuming that you installed both MySQL and PHP5 from an updated ports collection. Did you run: 'make config' in the PHP5 directory before building the port? --=20 Gerard Seibert gerard@seibercom.net 'Marijauna' was the Mexican name given to cannabis. --===[S/MIME_RFC2633]===44F18F4D.2F1D4DC=== Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIIKEAYJKoZIhvcNAQcCoIIKATCCCf0CAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCCMkw ggJRMIIBuqADAgECAgMPeOEwDQYJKoZIhvcNAQEEBQAwYjELMAkGA1UEBhMCWkExJTAjBgNVBAoT HFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBG cmVlbWFpbCBJc3N1aW5nIENBMB4XDTA1MDkxMzE2MDUwNloXDTA2MDkxMzE2MDUwNlowRjEfMB0G A1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEjMCEGCSqGSIb3DQEJARYUZ2VyYXJkQHNlaWJl cmNvbS5uZXQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAKNoN++UfUt9hlNLErk3m6fIzCDF wmFEnhlh4uU2kdmL/wOGOonGTwGYBB7GaILJxkLS7o2IxKl2qnBUCqVP7uJ94UkHcyP2C7WT0fR1 /PaOu+NX77DZiWu+7MLCL8j4MmkUVsGdgLZA9aLl2fZJg/MRn4F+aycFbjzcIUK7BcXvAgMBAAGj MTAvMB8GA1UdEQQYMBaBFGdlcmFyZEBzZWliZXJjb20ubmV0MAwGA1UdEwEB/wQCMAAwDQYJKoZI hvcNAQEEBQADgYEAKgPoe+N+nikyTgE9D6rLBygf25pks09Nm61lNFCayERnUG/wF+V40/msujKE MNTJBRt3jcIeLrFKYZLvntbPqS3ecusRBqmNwY75pnz6fdWW/oZUy8CMAZjn2nFz0WizIt+AyOm4 iP4yoCBCS3KiyDP1embBJlKuhy6gc+Gr/9swggMtMIIClqADAgECAgEAMA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