From owner-freebsd-questions@FreeBSD.ORG Tue Nov 23 03:34:12 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 C7CD016A4CE for ; Tue, 23 Nov 2004 03:34:12 +0000 (GMT) Received: from smtpauth09.mail.atl.earthlink.net (smtpauth09.mail.atl.earthlink.net [209.86.89.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E1F043D1F for ; Tue, 23 Nov 2004 03:34:12 +0000 (GMT) (envelope-from steveb99@earthlink.net) Received: from [64.3.114.72] (helo=venice) by smtpauth09.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1CWRRT-0003cb-P7 for freebsd-questions@freebsd.org; Mon, 22 Nov 2004 22:34:12 -0500 From: "steveb99" To: Date: Mon, 22 Nov 2004 19:34:10 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Thread-Index: AcTOXro8XjacQuuGQr2AlNWSwT65YQCrL+Og In-Reply-To: <419E2FB5.8080506@earthlink.net> X-ELNK-Trace: 61319303532569511aa676d7e74259b7b3291a7d08dfec79352a55a77e246a50209cba66d0507b7f350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 64.3.114.72 Message-Id: <20041123033412.8E1F043D1F@mx1.FreeBSD.org> 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: Tue, 23 Nov 2004 03:34:12 -0000 I have it working, but don't know if it is the right answer. Some of the info I got hinted at rebuilding in a different order. So I uninstall apache2, mod_php4, and mysql4. Then rebuilt the ports in this order MySQL, then apache, and last mod_php. The problem still existed. I found another port /usr/ports/databases/php4-mysql. After a reboot that solved the problem. Is the right way to fix my problem I don't know, but it does appear to of fixed the problem. Thanks all for their input. Steve B. > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of steveb99 > Sent: Friday, November 19, 2004 9:39 AM > To: freebsd-questions@freebsd.org > 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. >