From owner-freebsd-questions@FreeBSD.ORG Tue Nov 22 15:05:46 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 571D516A41F for ; Tue, 22 Nov 2005 15:05:46 +0000 (GMT) (envelope-from bconklin@masongeneral.com) Received: from fw.masongeneral.com (list.masongeneral.com [66.119.204.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C9CF43D9B for ; Tue, 22 Nov 2005 15:05:25 +0000 (GMT) (envelope-from bconklin@masongeneral.com) Received: from localhost (unknown [127.0.0.1]) by fw.masongeneral.com (Postfix) with ESMTP id 7813E154A9; Tue, 22 Nov 2005 07:05:21 -0800 (PST) Received: from fw.masongeneral.com ([127.0.0.1]) by localhost (fw.masongeneral.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 81211-01; Tue, 22 Nov 2005 07:05:19 -0800 (PST) Received: by fw.masongeneral.com (Postfix, from userid 1002) id 6A59C154AC; Tue, 22 Nov 2005 07:05:18 -0800 (PST) Received: from mx1.masongeneral.com (mx1.masongeneral.com [172.31.195.56]) by fw.masongeneral.com (Postfix) with ESMTP id A708314E29; Tue, 22 Nov 2005 07:05:17 -0800 (PST) X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 22 Nov 2005 07:05:17 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: apache2 php5 mysql4 problems Thread-Index: AcXu+362oROUJ5KvS8+84wy5oGljAgAekhcQ From: "Brian E. Conklin" To: , X-Privacy-Notice: Please visit http://www.masongeneral.com/HIPAA.htm X-Virus-Scanned: amavisd-new at masongeneral.com Cc: Subject: RE: apache2 php5 mysql4 problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2005 15:05:46 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org=20 > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Robert Munn > Sent: Monday, November 21, 2005 4:27 PM > To: freebsd-questions@freebsd.org > Subject: apache2 php5 mysql4 problems >=20 >=20 > I have been successfuly running apache2 as a web server with php5 as a > module. Recently I needed access to a database so I tried to upgrade > my system by adding mysql4 as the database server. >=20 > I had installed apache2 and php5 from the ports. Previously I would > install php5-extensions to build the mysql module for php. >=20 > After failing get the resulting php to recognize the mysql_ database > calls in php I noticed that the php5-extensions no longer build the > mysql extensions. Install php5-mysqli from ports. This will install the correct php5 = module for MySql 4.1 and above and setup your php.ini to load it. >=20 > I have tried various things. The most successful was to configure php > with the --with-mysql option. However this did not completelty solve > my problem. While database access was enabled from a php script, when > I use the same codee in a web page to access the same database, my > browser pops up a window asking if I want to save the file to disk or > search for a program to deal with the file (suggestion Dreamweaver > since it a .php file). >=20 > Does anybody have the sequence of build commands for making a apache2 > - php5 - mysql, a working web server environment? >=20 > I am running 5.4 >=20 > With thanks >=20 >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to=20 > "freebsd-questions-unsubscribe@freebsd.org" >=20 ====================================================================== Mason General Hospital 901 Mt. View Drive PO Box 1668 Shelton, WA 98584 http://www.masongeneral.com (360) 426-1611 ====================================================================== This message is intended for the sole use of the individual and entity to whom it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the addressee nor authorized to receive for the addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone this message or any information contained in the message. If you have received this message in error, please immediately notify the sender and delete the message. Replying to this message constitutes consent to electronic monitoring of this message. Thank you.