From owner-freebsd-questions Tue Apr 24 0:25:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from deborah.paradise.net.nz (deborah.paradise.net.nz [203.96.152.32]) by hub.freebsd.org (Postfix) with ESMTP id 7ED2E37B423 for ; Tue, 24 Apr 2001 00:25:19 -0700 (PDT) (envelope-from davep@afterswish.com) Received: from duron700.afterswish.com (203-79-83-91.cable.paradise.net.nz [203.79.83.91]) by deborah.paradise.net.nz (8.11.3/8.11.3) with ESMTP id f3O7PI872457 for ; Tue, 24 Apr 2001 19:25:18 +1200 (NZST) Message-Id: <5.0.2.1.1.20010424191424.023b2630@pop3.paradise.net.nz> X-Sender: dpreece@pop3.paradise.net.nz X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Tue, 24 Apr 2001 19:26:57 +1200 To: freebsd-questions@freebsd.org From: David Preece Subject: Grief with Apache, php and mysql. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I've just built the above from the port and am getting this error: "Call to undefined function: mysql_connect() in /usr/local/www/try.php on line 17" So, I assume this is an install fault of some description - most likely a fault in not compiling with the appropriate flag. I thought I selected support for MySQL when I compiled from the port, let's look for evidence.... Grepping in /usr/ports/www/apache13-php4/work/php for 'with-mysql' we see this line: INSTALL:$ ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars So that gives the impression that we compiled and configured with mysql support enabled. However, if I run the phpinfo(INFO_ALL) function, we don't get any references to mysql at all. I also renamed php.ini-dist to php.ini and verified that it was on the path php was looking on (/usr/local/etc). I can't be the first, and it must be a no-brainer of some description. Anyone know what's going on? Dave To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message