Women in Technology

Hear us Roar



Article:
  PHP 4.3 and Mac OS X
Subject:   where is php.ini
Date:   2003-01-17 02:27:18
From:   maarky
Response to: where is php.ini

I've always upgraded PHP using Mark Liyange's binaries (http://www.entropy.ch/software/macosx/php - he has been away since around mid December and hasn't updated his binaries, but he says he will be back around mid January and that he will update them then. Now that this article is out I may go ahead and update it myself.) In his FAQ he says that no php.ini file is included so if you want one you should create it here:


/usr/local/lib/php.ini


So that's what I did and it worked fine. I don't know if this is the proper location if you follow the instructions in this article.


Another idea is to create a PHP file containing only:


<?php phpinfo() ?>


View this file in your browser. At the top in the first table you will see a cell labled "Configuration File (php.ini) Path". Check the path it gives in the next column over. If your php.ini file is not there then try creating one in that location.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • where is php.ini
    2003-09-26 11:36:44  anonymous2 [View]

    I'm under Os X (not server) and using the "default" 4.1.2 php installed. My "info.php" says that php.ini must be at
    /usr/lib
    but is not there!
    Can php work without a php.ini ?? : Yes it works!
    If I create one (or copy there the 4.3.0 php.ini) what will happen? I'll post here of this experience.
    I need to work with php.ini cause I need the "allow_url_open" directive to allow my calls for readdir to open remote directories.