Re: Re: PHP 4.0 Bug #5046 Updated: Install tries to put stuff in /usr/local even when --prefix is specified

From: Date: Fri, 11 Aug 2000 11:36:22 +0000
Subject: Re: Re: PHP 4.0 Bug #5046 Updated: Install tries to put stuff in /usr/local even when --prefix is specified
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-28587@lists.php.net to get a copy of this message
On Thu, 10 Aug 2000, Jonathan Leffler wrote: >>--with-config-file-path is used to tell php where to look for php.ini. >And I wish to argue, strongly, that setting --prefix=/usr/php should >alter the default location of the php.ini file from >/usr/local/lib/php/php.ini to /usr/php/lib/php/php.ini. I agree with you in this. I haven't yet heard any good reasoning why php.ini is supposed to be located by default in /usr/local/lib >For most products, specifying --prefix relocates everything under the >specified directory, unless an auxilliary --with-xyz changes something. >For example, I relocate everything in Apache with --prefix=/usr/apache >and that's all it takes. Nothing is left dangling in /usr/local once I >use --prefix. And I'm under the impression that's what autoconf >expects; you relocate a package with --prefix, and only very specially >do any other relocations, and you certainly don't quietly leave >something unrelocated when you specify --prefix. I don't know if I can >For PHP, specifying --prefix does not relocate everything. You have to >specify at least two separate items --prefix and --config-file-path. >With Apache, the config file is in $PREFIXDIR/conf automatically; I >would expect that PHP should act the same way -- it is the exception to >the Open Source community rule that autoconf'd programs can relocate >everything with --prefix. I agree. Maybe someone (Rasmus? =) could explain why this isn't done like that with php. --Jani

« previous php.dev (#28587) next »