SuPHP config loads the wrong php.ini file

wattie

Verified User
Joined
May 31, 2008
Messages
1,206
Location
Bulgaria
The first PHP is mod_php version 5.4. The second php is suphp version 5.3

I have the following in the test.php when using the 5.3 (suphp) version:

Configuration File (php.ini) Path /usr/local/php53/lib
Loaded Configuration File /usr/local/php54/lib/php.ini
Scan this dir for additional .ini files /usr/local/php53/lib/php.conf.d
Additional .ini files parsed /usr/local/php53/lib/php.conf.d/directadmin.ini


Any ideas why it should load the php54 ini instead of it's own 5.3 one?

Before finding what the problem is I tried:

build rewrite_confs

and

build all d

+ two times rebuilding apache and php versions.

The issue started since yesterday. For some reason the mod_htscanner2.so file was missing and we had to rebuild htscanner. Since then - the 5.3 version is using the wrong ini.

Any ideas?
 
Last edited:
I am looking into this now as I just discovered same problem, if the php54 ini file is renamed so it doesnt exist then the suphp version reads the correct file, in addition the DA configure script for suphp is missing a option that is supposed to specify the location of the main ini file, but when that is added the problem still occurs.

the answer is the config path is specified in /etc/httpd/conf/extra/httpd-suphp.conf, no idea how it got set wrong tho, so I fixed it and then set the immutable flag on the file to prevent DA from updating it again.
 
Last edited:
Back
Top