[SOLVED - THE REDHAT WAY] Re: [PHP] stupid compile problem... additional ini files not found
| From: | Jochem Maas | Date: | Mon, 21 Aug 2006 13:58:34 +0000 |
| Subject: | [SOLVED - THE REDHAT WAY] Re: [PHP] stupid compile problem... additional ini files not found | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240947@lists.php.net to get a copy of this message | ||
I worked round my problem by adding the contents of my additional ini files
to the bottom of the std ini file - a typical redhat solution to a typical redhat
problem (I only ever seem to have to go through this kind of crap on Redhat - Debian
is much nicer to me).
Jochem Maas wrote:
> hi people,
>
> anyone know why my additional ini files are being ignored.
>
> I've just built php5.1.1
> the configure line is:
>
> './configure' '--with-interbase=shared,/opt/firebird'
> '--with-apxs2=/usr/sbin/apxs' '--with-gd=shared' '--with-zlib-dir'
> '--with-jpeg-dir' '--with-config-file-scan-dir=/etc/php.d'
> '--with-mm=/usr'
>
> the dir [that php is configured to look in for additional ini files] exists:
>
> # ls -lart /etc/php.d/
> total 32
> -rw-r--r-- 1 root root 375 Aug 21 12:42 interbase.ini
> -rw-r--r-- 1 root root 51 Aug 21 12:42 gd.ini
> -rw-r--r-- 1 root root 1130 Aug 21 12:42 apc.ini
> drwxr-xr-x 2 root root 4096 Aug 21 12:45 .
> drwxr-xr-x 91 root root 12288 Aug 21 13:20 ..
>
> YET, doing a 'php -i' shows that no files were read from that dir:
>
> <SNIP>
> PHP Version => 5.1.1
> System => Linux testserver.dynabyte.nl 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006
> i686
> Build Date => Aug 21 2006 13:43:09
> Configure Command => './configure'
> '--with-interbase=shared,/opt/firebird' '--with-apxs2=/usr/sbin/apxs'
> '--with-gd=shared' '--with-zlib-dir' '--with-jpeg-dir'
> '--with-config-file-scan-dir=/etc/php.d' '--with-mm=/usr'
> Server API => Command Line Interface
> Virtual Directory Support => disabled
> Configuration File (php.ini) Path => /etc/php.ini
> Scan this dir for additional .ini files => /etc/php.d
> PHP API => 20041225
> </SNIP>
>
> the following line should be part of the snippet just above the last line (PHP API):
>
> additional .ini files parsed => /etc/php.d/apc.ini, /etc/php.d/gd.ini,
> /etc/php.d/interbase.ini
>
>
> any takers?
>