php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5046 Install tries to put stuff in /usr/local even when --prefix is specified
Submitted: 2000-06-15 01:24 UTC Modified: 2000-08-11 05:45 UTC
From: jleffler at informix dot com Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.0 Release OS: Solaris 7
Private report: No CVE-ID: None
 [2000-06-15 01:24 UTC] jleffler at informix dot com
configure line:
./configure --prefix=/usr/php/v4.0.0 --with-mysql=/usr/mysql --with-apxs=/usr/apache/v1.3.12/bin/apxs --with-informix --with-exec-dir=/usr/php/v4.0.0/bin

Note that the addition of --with-exec-dir is symptomatic of the problem.

The configure.in script sets the location of the php.ini file around line 412.  It gets around to looking at --prefix around line 677.

That might not matter if /usr/local is locally controlled, but on my machine, it is an NFS automounted readonly file system with only archaic stuff on it.

Please can you upgrade the script to ensure that everything is keyed off
the user define prefix very early in the configure.in code!  And testing with
an empty read-only /usr/local directory hierarchy is an exceptionally good discipline for finding this sort of problem.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-10 08:52 UTC] sniper@php.net
Does this problem persist with more recent versions of php4? 

--Jani
 [2000-08-11 05:45 UTC] sniper@php.net
--------USER FEEDBACK-----------

PHP 4.0.1pl2 still does the same as originally reported with PHP 4.0.0.

I configure around it now, specifying --prefix but also:

PHPDIR=/usr/php/v4.0.1pl2

./configure  --prefix=$PHPDIR2 \
    --with-apxs=/usr/apache/v1.3.12/bin/apxs \
    --with-informix=/usr/informix/9.20.UC2 \
    --with-exec-dir=$PHPDIR2/bin \
    --with-lib-dir=$PHPDIR2/lib \
    --with-config-file-path=$PHPDIR2/lib

I doubt whether I needed both --with-lib-dir and --with-exec-dir, but
the --with-lib-dir does not set the config file path either.

-------END OF USER FEEDBACK --------

<cut configure --help >
--with-exec-dir[=DIR]   Only allow executables in DIR when in safe mode
<end cut>

This isn't what you want to accomplish??
And there isn't any --with-lib-dir in php4's configure. (or I'm blind)

--with-config-file-path is used to tell php where to look for php.ini .

--Jani


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 15:00:01 2026 UTC