From owner-freebsd-questions@FreeBSD.ORG Fri Nov 19 17:49:52 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 4891616A4CE for ; Fri, 19 Nov 2004 17:49:52 +0000 (GMT) Received: from outmx013.isp.belgacom.be (outmx013.isp.belgacom.be [195.238.3.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AD7C43D31 for ; Fri, 19 Nov 2004 17:49:51 +0000 (GMT) (envelope-from zeroke@surfmail.be) Received: from outmx013.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id iAJHneLL028161 for ; Fri, 19 Nov 2004 18:49:40 +0100 (envelope-from ) Received: from Wout (205-174.240.81.adsl.skynet.be [81.240.174.205]) with SMTP id iAJHnd5P028145; Fri, 19 Nov 2004 18:49:39 +0100 (envelope-from ) Message-ID: <001001c4ce60$237ccbe0$960aa8c0@Wout> From: "Zeroke" To: "steveb99" , References: <419E27C1.5050807@hayers.org> <419E2FB5.8080506@earthlink.net> Date: Fri, 19 Nov 2004 18:49:37 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Re: MySQL problems on FBSD 5.2.1 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: Fri, 19 Nov 2004 17:49:52 -0000 Don't know if the ports automaticly compile PHP with MySQL support. Maybe install PHP from source with the --with-mysql parameter? (Since version 5 of PHP it does not include MySQL support from its own.) Good luck, Zeroke zeroke@surfmail.be ----- Original Message ----- From: "steveb99" To: Sent: Friday, November 19, 2004 6:39 PM Subject: MySQL problems on FBSD 5.2.1 >I installed mod_PHP which installed Apache 2 from ports. All that works >fine. I then install MySQL4 port and have it working fine standalone. >What I can't get to work is calling MySQL from PHP code. The code hits >the call to MySQL functions and does nothing, just stops at that line and >the web server puts up a blank screen. I have looked at http error logs >and nothing. I have put debug statements in the PHP code and it does >execute up to the first MySQL line trying to connect. > > $db = MySQL_pconnect('localhost', 'mysqlacct', 'mysqlpw'); > > What am I missing. I have been reading articles on the internet and > everything is talking about old versions or doing it from source not > ports. I assume this can be done from ports? From reading I get the > feeling I installed in the wrong order, or there is more configuration I > am missings. > Can someone help point me to what I am missing here. > > Thanks, > Steve B. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >