PHP 4 + PHP 5 -- Where the heck is the second php.ini?

M0nKeY

Member
Jul 8, 2005
10
0
151
So I installed PHP 4/5 and there used to be 2 ini files when you installed both

located in
/usr/local/lib/php.ini
/usr/local/php4/lib/php.ini

but on this new server there's only the one ini in /usr/local/lib

Both version of php are functioning just fine... are they running off one ini?
 

M0nKeY

Member
Jul 8, 2005
10
0
151
OK looks like php4 is still looking /usr/local/php4/lib for its ini but the unsupported module does not even create a php.ini at all

err??
 

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
OK looks like php4 is still looking /usr/local/php4/lib for its ini but the unsupported module does not even create a php.ini at all

err??
Yes, PHP can work without having php.ini file and it will take the default values when the conf file its looking doesn't exist. You can copy php.ini file to the location it is looking for ( check php -i ) and it should load fine. Anyway it is not recommended to have PHP 4 on your server as its already announced as an unsupported php version from EA3 and it's been crossed its EOL ages back.