From owner-freebsd-questions@FreeBSD.ORG Sun Aug 27 11:57:13 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 00FA516A4E7 for ; Sun, 27 Aug 2006 11:57:13 +0000 (UTC) (envelope-from omer@omeriqbal.com) Received: from smtp101.biz.mail.re2.yahoo.com (smtp101.biz.mail.re2.yahoo.com [68.142.229.215]) by mx1.FreeBSD.org (Postfix) with SMTP id 4C12C4432A for ; Sun, 27 Aug 2006 11:57:12 +0000 (GMT) (envelope-from omer@omeriqbal.com) Received: (qmail 46559 invoked from network); 27 Aug 2006 11:55:20 -0000 Received: from unknown (HELO rakaposhi) (omer@omeriqbal.com@203.81.220.191 with login) by smtp101.biz.mail.re2.yahoo.com with SMTP; 27 Aug 2006 11:55:18 -0000 From: "Muhammad Omer Iqbal" To: Date: Sun, 27 Aug 2006 04:55:12 -0700 Message-ID: <001301c6c9cf$abd89930$0202a8c0@rakaposhi> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20060827072419.8CFE.GERARD@seibercom.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Thread-Index: AcbJy2xZcvpKVtEkTPetqkh1RnPh1QAAxjbA 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 11:57:13 -0000 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 = resort places, don't want to bug people with something trivial or easily = fixable. 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. 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 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): Fatal error: Class 'mysqli' not found in /usr/local/www/apache22/data/test.php on line 7 Looking through phpinfo, I do not find mysql or mysqli installed, even 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 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 = of versioning issues, and untar and install it using the command line. Thanks, Omer -----Original Message----- From: Gerard Seibert [mailto:gerard@seibercom.net]=20 Sent: Sunday, August 27, 2006 4:25 AM To: freebsd-questions@freebsd.org Cc: Muhammad Omer Iqbal Subject: Re: PHP5 and MySQL Muhammad Omer Iqbal wrote: > I have problems with PHP5 and MySQL running together. I know this is a = > freebsd mailing list, not PHP/MySQL, but I am unable to find an=20 > appropriate mailing list for getting my problem resolved. Can someone=20 > help and let me know what the right mailing list is? http://www.php5forum.com/index.php http://www.mysql.com/ Have you just tried Googling for a possible solution? It might help if = you actually posted exactly what your problem is. Perhaps someone here might = be able to assist you. -- Gerard Seibert gerard@seibercom.net Love does not consist in gazing at each other but in looking together in the same direction. Antoine de Saint-Exup=E9ry