From owner-freebsd-questions@FreeBSD.ORG Fri Dec 3 13:44:57 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 8177716A4CE for ; Fri, 3 Dec 2004 13:44:57 +0000 (GMT) Received: from smtpauth07.mail.atl.earthlink.net (smtpauth07.mail.atl.earthlink.net [209.86.89.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1D8B43D45 for ; Fri, 3 Dec 2004 13:44:56 +0000 (GMT) (envelope-from algould@datawok.com) Received: from [206.255.31.21] (helo=grokwell.org) by smtpauth07.mail.atl.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1CaDjy-0002jc-Eo; Fri, 03 Dec 2004 08:44:55 -0500 Date: Fri, 3 Dec 2004 07:44:42 -0600 From: "Andrew L. Gould" To: Cristi Tauber Message-ID: <20041203074442.2177b1f3@grokwell.org> In-Reply-To: <41B06A67.971C29EB@sbhost.ro> References: <41B06A67.971C29EB@sbhost.ro> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69563f9fea00a6dd62bcd9d6f09badbcce4ec4423a3df954c3c6350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 206.255.31.21 cc: FreeBSD Question Subject: Re: php4-cli or mod_php4 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, 03 Dec 2004 13:44:57 -0000 On Fri, 03 Dec 2004 15:30:15 +0200 Cristi Tauber wrote: > Hello list, > > i want to install apache+php+mysql. If i install mod_php i cannot > install php4-extension (mysql, etc ...). If i try to install php4-cli > and extensions apache doesn't know how to handle .php files . What's > the they to go to make apache work with mysql and php ? fBSD is 5.3. > > Thanks, > > Cristi Hi Cristi, Install php4-extensions; and then follow these instructions, which are found in /usr/ports/lang/php4/pkg-message.mod: *************************************************************** Make sure index.php is part of your DirectoryIndex. You should add the following to your Apache configuration file: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps *************************************************************** You're next big question may be whether to use apache 1.3 or apache 2, as I keep seeing references on the internet about people having problems with php and apache 2. Best regards, Andrew Gould