From owner-freebsd-questions@FreeBSD.ORG Sun Aug 27 13:12:18 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 761B416A51C for ; Sun, 27 Aug 2006 13:12:18 +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 907744480B for ; Sun, 27 Aug 2006 12:42:33 +0000 (GMT) (envelope-from omer@omeriqbal.com) Received: (qmail 76435 invoked from network); 27 Aug 2006 12:42:23 -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 12:42:22 -0000 From: "Muhammad Omer Iqbal" To: Date: Sun, 27 Aug 2006 05:42:15 -0700 Message-ID: <001b01c6c9d6$3e6b94e0$0202a8c0@rakaposhi> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 In-Reply-To: <20060827082549.2F9B.GERARD@seibercom.net> Thread-Index: AcbJ0/Hh1nF3W2G3QPO2+gkV/KUAggAAgR9Q 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 13:12:18 -0000 I am sorry, being a newbie, I do not know what this means: >> Please don't top post! >> What version issue are you referring to? As for this: >> 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? I recently installed Apache 2.2, so it is as updated a ports collection as I could get. I did make config. Even if I just do make, or make install, it runs config first and then does the install. However, like I said, I did make config and then did a remake, that did not really work - my PHP make is still dated Aug 22. -----Original Message----- From: Gerard Seibert [mailto:gerard@seibercom.net] Sent: Sunday, August 27, 2006 5:26 AM To: freebsd-questions@freebsd.org Cc: Muhammad Omer Iqbal Subject: Re: PHP5 and MySQL 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 > 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. 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? -- Gerard Seibert gerard@seibercom.net 'Marijauna' was the Mexican name given to cannabis.