From owner-freebsd-questions@FreeBSD.ORG Mon Sep 22 10:12:27 2003 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 3EB3516A4BF for ; Mon, 22 Sep 2003 10:12:27 -0700 (PDT) Received: from ballista.haightlife.com (dsl-sj-66-219-82-2.broadviewnet.net [66.219.82.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4859443FF3 for ; Mon, 22 Sep 2003 10:12:17 -0700 (PDT) (envelope-from lists-2003@alderete.com) Received: from [66.219.82.3] (trebuchet.haightlife.com [66.219.82.3]) h8MHCAvx021285 for ; Mon, 22 Sep 2003 10:12:11 -0700 (PDT) (envelope-from lists-2003@alderete.com) Mime-Version: 1.0 X-Sender: (Unverified) Message-Id: In-Reply-To: References: X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . Date: Mon, 22 Sep 2003 09:53:31 -0700 To: freebsd-questions@freebsd.org From: "Michael A. Alderete" Content-Type: text/plain; charset="us-ascii" Subject: Re: apache, mod_php & filename-dist 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, 22 Sep 2003 17:12:27 -0000 At 7:19 PM +0200 9/21/03, H. Bartel wrote: >I installed mod_php4 on Apache and phpinfo(); tells me php 4.1.3 is >running. Nevertheless variables do not get parsed at all. I tried looking >for the /usr/local/etc/php.ini file and I realised it is called >/usr/local/etc/php.ini-dist Could this be the reason or did I miss >something? > >Is this like it is supposed to or is this some installation left-over >distfile? I do have noticed quite a few of those filename-dist things on >my system, like in /usr/local/www/data which is the apache root folder. You didn't say if you installed PHP from the ports collection, or from downloaded source. I use the source, so you may need to adjust my advice if that's not your situation. PHP initializes itself from a text file by default named php.ini. When you view the phpinfo() page, it will tell you in what directory PHP is expecting to find that file (it's adjustable at compile-time, and the default changes, depending on whether you're using the ports or the source). The -dist file is an example of a "good" php.ini file, which you will normally copy, and then modify to suit your purposes. E.g.: cp /usr/local/etc/php.ini-dist /usr/local/etc/php.ini vi /usr/local/etc/php.ini In general, -dist files are intended to give you an example of a "good" configuration, and should be preserved unmodified, so you can compare your configuration to something known to be good, in the event you need to troubleshoot, reset to a more basic configuration, etc. HTH. Michael -- _____________________________________________________________ Michael A. Alderete