#43106 [Fbk->Opn]: php.ini not found
| From: | poletto at jeuxvideo dot com | Date: | Fri, 26 Oct 2007 08:23:05 +0000 |
| Subject: | #43106 [Fbk->Opn]: php.ini not found | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118973@lists.php.net to get a copy of this message | ||
ID: 43106
User updated by: poletto at jeuxvideo dot com
Reported By: poletto at jeuxvideo dot com
-Status: Feedback
+Status: Open
Bug Type: *General Issues
Operating System: Linux
PHP Version: 5.2.4
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2007-10-26 08:06:47] jani@php.net
Is that path readable by the user as what Apache runs as?
Check the permissions.
------------------------------------------------------------------------
[2007-10-25 17:11:26] poletto at jeuxvideo dot com
Description:
------------
php.ini is not found when specifying an alternate installation PREFIX
(/usr/local/php5).
phpinfo() says configuration path is in /usr/local/php5/lib, so i've
put a php.ini there (i've tried some differents php.ini).
phpinfo() says it didn't load any php.ini (and the changes to variables
are ignored).
Yes i've restarted apache.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43106&edit=1