why my php.ini so funny?

neorder

Verified User
Joined
Oct 1, 2003
Messages
346
when i read phpinfo.php

i found my php.ini Configuration File (php.ini) Path

sometimes at

/usr/local/Zend/etc/php.ini

sometimes at

/usr/local/lib/php.ini

sometimes at

/etc/php.ini <---not sure if i had this

why is like that? which one is the one that DA use, so that i can make changes on it...?

thanks
 
the path change happens after i recompiled php, is there are way to set a default value?
 
Hello,

The default path is /usr/local/lib/php.ini

When you install Zend, it moves the file to /usr/local/Zend/etc/php.ini *but* creates a symbolic link from the old location, /usr/local/lib/php.ini

Php also has a search order for the php.ini file (I'm not sure on the exact order), so if the /etc/php.ini exists, it might read it.

John
 
Back
Top