Date: Sun, 27 Aug 2006 08:25:58 -0400 From: Gerard Seibert <gerard@seibercom.net> To: freebsd-questions@freebsd.org Cc: Muhammad Omer Iqbal <omer@omeriqbal.com> Subject: Re: PHP5 and MySQL Message-ID: <20060827082549.2F9B.GERARD@seibercom.net> In-Reply-To: <001301c6c9cf$abd89930$0202a8c0@rakaposhi> References: <20060827072419.8CFE.GERARD@seibercom.net> <001301c6c9cf$abd89930$0202a8c0@rakaposhi>
next in thread | previous in thread | raw e-mail | index | archive | help
--===[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/9swggMtMIIClqADAgECAgEAMA0GCSqGSIb3DQEBBAUA MIHRMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBDYXBlMRIwEAYDVQQHEwlDYXBlIFRv d24xGjAYBgNVBAo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ExJTAj BgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQZXJz b25hbCBGcmVlbWFpbCBJc3N1aW5nIENBAgMPeOEwCQYFKw4DAhoFADANBgkqhkiG9w0BAQEFAASB gHYDzD1c/Ouor6kVWanKQYOZ1vX8eq/BHXpy2ACKlrIckzbcD+hv7viD+lZv8OulLGRmQorfFS6y HbMDoYC3TikZXOlie5z7HsYqumD+hE8FJS8odGSy2vTDqimQACR5pidOvPjX1h6ANVyf/2o5jBWW 7Q6U4nQmw4o3oOuNMPIu --===[S/MIME_RFC2633]===44F18F4D.2F1D4DC===--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060827082549.2F9B.GERARD>