faqts : Computers : Programming : Languages : PHP : General Information : PHP3 to PHP4 Migration : Unix

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

15 of 23 people (65%) answered Yes
Recently 6 of 10 people (60%) answered Yes

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