From owner-freebsd-questions@FreeBSD.ORG Tue Nov 22 00:26:37 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 417F916A421 for ; Tue, 22 Nov 2005 00:26:37 +0000 (GMT) (envelope-from munn@isca.dyndns.org) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [216.148.227.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7B7B43D60 for ; Tue, 22 Nov 2005 00:26:36 +0000 (GMT) (envelope-from munn@isca.dyndns.org) Received: from isca.dyndns.org ([69.243.71.164]) by comcast.net (rwcrmhc11) with ESMTP id <2005112200263401300d998je>; Tue, 22 Nov 2005 00:26:34 +0000 Received: from isca.dyndns.org (localhost.dyndns.org [127.0.0.1]) by isca.dyndns.org (8.13.3/8.13.1) with ESMTP id jAM0QW8o095184; Mon, 21 Nov 2005 19:26:32 -0500 (EST) (envelope-from munn@isca.dyndns.org) Received: (from munn@localhost) by isca.dyndns.org (8.13.3/8.13.1/Submit) id jAM0QVZB095183; Mon, 21 Nov 2005 19:26:31 -0500 (EST) (envelope-from munn) Date: Mon, 21 Nov 2005 19:26:31 -0500 From: Robert Munn To: freebsd-questions@freebsd.org Message-ID: <20051122002631.GA95156@isca.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: apache2 php5 mysql4 problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: robertmunn2@comcast.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2005 00:26:37 -0000 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. I had installed apache2 and php5 from the ports. Previously I would install php5-extensions to build the mysql module for php. 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. 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). Does anybody have the sequence of build commands for making a apache2 - php5 - mysql, a working web server environment? I am running 5.4 With thanks