PDA

View Full Version : why my php.ini so funny?



neorder
05-05-2004, 08:39 AM
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

neorder
05-05-2004, 08:45 AM
the path change happens after i recompiled php, is there are way to set a default value?

DirectAdmin Support
05-05-2004, 11:55 AM
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

neorder
05-05-2004, 07:39 PM
thank you , i think that explains. :)