From owner-freebsd-questions@FreeBSD.ORG Mon Dec 6 14:59:07 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 33F3B16A4CE for ; Mon, 6 Dec 2004 14:59:07 +0000 (GMT) Received: from lv.raad.tartu.ee (lv.raad.tartu.ee [194.126.106.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D01D43D73 for ; Mon, 6 Dec 2004 14:59:05 +0000 (GMT) (envelope-from toomas.aas@raad.tartu.ee) Received: Message by Barricade lv.raad.tartu.ee with ESMTP id iB6Ex2Ji010821; Mon, 6 Dec 2004 16:59:02 +0200 Received: from INFO/SpoolDir by raad.tartu.ee (Mercury 1.48); 6 Dec 04 16:59:02 +0300 Received: from SpoolDir by INFO (Mercury 1.48); 6 Dec 04 16:59:01 +0300 Received: from [192.168.1.2] (192.168.1.2) by raad.tartu.ee (Mercury 1.48) with ESMTP; 6 Dec 04 16:58:57 +0300 Message-ID: <41B473B2.4000906@raad.tartu.ee> Date: Mon, 06 Dec 2004 16:58:58 +0200 From: Toomas Aas User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Olaf Greve , questions@freebsd.org References: <00f001c4db96$efd138a0$1e01a8c0@sjees> In-Reply-To: <00f001c4db96$efd138a0$1e01a8c0@sjees> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Mon, 06 Dec 2004 14:59:07 -0000 Olaf Greve wrote: > It seems that as of fBSD 5.3, the version that is installed when using > sysinstall has a lot less compile options enabled than it used to do > previously, one of which being the MySQL support. Here's what I did to > solve the issue: > 1) Install Apache 1.3, PHP4 (MOD + CLI), PHP4 extensions. > 2) Make sure this combination can successfully execute a simple 'hello > world' example. > 3) Figure out PHP's compilation options (this can be done e.g. using > PHPinfo). ... etc. Well, that's certainly one way, but it's not The Way ;-) Correct solution would be to install mod_php4 first and then install all the necessary extensions via separate ports. For instance, to get MySQL support in PHP you would install /usr/ports/databases/php4-mysql. This way of installing extensions via ports was introduced when PHP 4.3.8 came out (and was mentioned in /usr/ports/UPDATING).