ID:               43106
 User updated by:  poletto at jeuxvideo dot com
 Reported By:      poletto at jeuxvideo dot com
 Status:           Bogus
 Bug Type:         *General Issues
 Operating System: Linux
 PHP Version:      5.2.4
 New Comment:

Ok, i figured out what happens
It's still present in 5.2.12

This happens when you launch ./configure without a --prefix option and
then relaunch ./configure with a --prefix option

The --prefix isn't ignored but the path to look where is php.ini is
buggy


Previous Comments:
------------------------------------------------------------------------

[2007-10-29 14:35:43] j...@php.net

Can not reproduce -> bogus. (if you get time to investigate more, email
me)

------------------------------------------------------------------------

[2007-10-26 11:54:17] poletto at jeuxvideo dot com

Ok, that's strange.
Maybe it's because several php installations have been made over the
time on this server..
I don't really have time to look deeper in this, sorry.
Thanks.

------------------------------------------------------------------------

[2007-10-26 10:09:55] j...@php.net

You must be doing something wrong or just overlooked something since
this works just fine for me:

Configure Command =>  '../../php-5.2/configure'  '--prefix=/opt/php52'

Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /opt/php52/lib
Loaded Configuration File => /opt/php52/lib/php.ini

PHP will use that path mentioned in the phpinfo() output if there's
usable php.ini in it. Make sure you're using "clean" sources when you
build PHP and before you install it, shutdown apache.

------------------------------------------------------------------------

[2007-10-26 08:23:05] poletto at jeuxvideo dot com

Yes

> ls -la /usr/local/php5/lib/
total 60
drwxr-xr-x    3 root     root         4096 Oct 26 10:16 .
drwxr-xr-x    6 root     root         4096 Oct 23 14:27 ..
drwxr-xr-x   13 root     root         4096 Oct 23 14:27 php
-rw-r--r--    1 root     root        48618 Oct 25 18:30 php.ini

> ls -la /usr/local/php5
total 24
drwxr-xr-x    6 root     root         4096 Oct 23 14:27 .
drwxr-xr-x   21 root     root         4096 Oct 23 14:27 ..
drwxr-xr-x    2 root     root         4096 Oct 25 19:05 bin
drwxr-xr-x    3 root     root         4096 Oct 23 14:27 include
drwxr-xr-x    3 root     root         4096 Oct 25 18:33 lib
drwxr-xr-x    3 root     root         4096 Oct 23 14:27 man

(i've checked parent directories too)


I've found a temporary workaround : it seems that php still checks
php.ini in /usr/local/lib (which is the path for the default prefix). It
works if i put my php.ini there (but it's not there i intend to put
it).
I've tried to specify /usr/local/php5/lib for the configuration path or
for the directory in which php should look for configuration files : it
changes nothing.

------------------------------------------------------------------------

[2007-10-26 08:06:47] j...@php.net

Is that path readable by the user as what Apache runs as?
Check the permissions.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/43106

-- 
Edit this bug report at http://bugs.php.net/?id=43106&edit=1

Reply via email to