From owner-freebsd-questions@FreeBSD.ORG Mon Oct 4 16:14:09 2004 Return-Path: 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 E7B8016A4CE for ; Mon, 4 Oct 2004 16:14:09 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD05843D41 for ; Mon, 4 Oct 2004 16:14:09 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from working.potentialtech.com (pa-plum-cmts1e-68-68-113-64.pittpa.adelphia.net [68.68.113.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by internet.potentialtech.com (Postfix) with ESMTP id E117C69A39; Mon, 4 Oct 2004 12:14:08 -0400 (EDT) Date: Mon, 4 Oct 2004 12:14:07 -0400 From: Bill Moran To: Perica Veljanovski Message-Id: <20041004121407.6962345b.wmoran@potentialtech.com> In-Reply-To: <20041004170955.5B20.FREEBSD@euro.net.mk> References: <20041004170955.5B20.FREEBSD@euro.net.mk> Organization: Potential Technologies X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: problem with php mysql X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 16:14:10 -0000 Perica Veljanovski wrote: > Hi all, > > I have trouble installing/configuring php with mysql support. I tired > installing the php5 interpreter WITH_MYSQL=yes from the ports, and when > I try to start a mysql_connect(); php syntax, i get: > > Call to undefined function mysql_pconnect() in someFile.php on line N. > > I tired installing mod_php5 (first i removed lang/php5) and the same > thing happens. > php.ini and httpd.conf are ok as far as I can tell :P But since I'm not > experienced in Apache/php configuration, I would appreciate some pointers > to where should I look for mysql support configuration. > > I run on a cvsup-ed 4.7 to FreeBSD 4.10-STABLE (port's cvsuped allso) > I have: > mysql-client-5.0.0_2 Multithreaded SQL database (client) > mysql-server-5.0.0_2 Multithreaded SQL database (server) > apache-2.0.50 Version 2 of Apache web server with prefork MPM. > mod_php5-5.0.0,1 PHP Apache Module > All installed from ports. Install php5-extensions, and choose the extensions you want. -- Bill Moran Potential Technologies http://www.potentialtech.com