Entry
Where is the php3.ini configuration file on a unix server?
What is the path to my php.ini file?
Feb 6th, 2004 13:17
Philip Olson, Nathan Wallace,
It may optionally be defined at compile-time (using the --with-config-
file-path directive), so it could, theoretically, be anywhere. You can
find out for sure by creating a simple page containing:
<?php phpinfo(); ?>
To the right of the "Configuration File (php.ini) Path" heading is the
path to php.ini If just a directory PATH exists than php.ini is not
being read (so all php.ini-dist defaults are being used) and if you
want to use a php.ini file then put your php.ini in that directory. If
php.ini is included with the PATH than it is being read.
A couple official PHP.net faqs exist on the subject of php.ini here:
http://www.php.net/manual/en/faq.installation.php