INI files dir not scanned

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
root
Forum Newbie
Posts: 1
Joined: Mon Mar 23, 2009 12:40 am

INI files dir not scanned

Post by root »

We run PHP 5.2.6 on Ubuntu 8.10 (intrepid).

PHP was compiled with several options and phpinfo() shows all of them, like:

Code: Select all

./configure --with-config-file-path=/etc/php5/apache2  --with-config-file-scan-dir=/etc/php5/conf.d
But for some reasons, the /etc/php5/conf.d dir is not scanned.

A call to php_ini_scanned_files() returns (bool)false, while the dir exists and has many ini...

Code: Select all

 
root@here# ll /etc/php5/conf.d
total 20
-rw-r--r-- 1 root root 32 2009-03-23 14:07 apc.ini
-rw-r--r-- 1 root root 57 2007-10-05 08:36 mysqli.ini
-rw-r--r-- 1 root root 56 2007-10-05 08:36 mysql.ini
-rw-r--r-- 1 root root 52 2007-10-05 08:36 pdo.ini
-rw-r--r-- 1 root root 60 2007-10-05 08:36 pdo_mysql.ini
 
We need simply to start 'apc' and the module is installed correctly.

But the initial/main problem seems that the /etc/php5/conf.d is not scanned while the option is present in the 'configure' options.
No error in error logs.

Any idea? Thanks.
Post Reply