From owner-freebsd-questions Tue Jan 4 23:37:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail-1.actllc.com (mail-1.actllc.com [209.221.160.11]) by hub.freebsd.org (Postfix) with ESMTP id 21A4F14CE2 for ; Tue, 4 Jan 2000 23:37:11 -0800 (PST) (envelope-from majid@ibroadcast.net) Received: from magic2 ([209.221.145.23]) by mail-1.actllc.com (8.9.3/8.9.1) with SMTP id XAA30537; Tue, 4 Jan 2000 23:41:24 -0800 Message-ID: <010501bf574f$7ae4a160$1791ddd1@balfourplace.com> From: "Majid Almassari" To: "sylaw" , References: <3872EFB8.41C3A605@singnet.com.sg> Subject: Re: Help Date: Tue, 4 Jan 2000 23:35:34 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="x-user-defined" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Yes you need to re-compile the Apache+PHP module using MySQL Libraries. Your Makefile should include the following: NC= -I/usr/local/include LIBS= -L/usr/local/lib/mysql -lmysqlclient -lm CFLAGS= -Wall -g CC=gcc Hopefully that helps. Majid Almassari, MSEE, MCP. System Administrator. iBroadcast, Inc. (206) 223-5540 http://www.ibroadcast.net ----- Original Message ----- From: sylaw To: Sent: Tuesday, January 04, 2000 11:16 PM Subject: Help > HI, > > I am running on FreeBSD and installed Apache+php-1.3.9+3.0.13.tgz. > However, when I write a PHP3 script to access MySQL server, my browser > tell me undefined function mysql_connect(). Do I need to re-compile my > Apache+php module to include in MySQL module ? I fso, can you briefly > explain how can I do it ? Thank you. > > Regards, > Sie Yong > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message