Where is php.ini in Lion?

Discussion in 'Mac Programming' started by orvn, Feb 18, 2012.

  1. orvn, Feb 18, 2012
    Last edited: Feb 18, 2012

    orvn macrumors 6502

    Jan 11, 2011
    Toronto, Canada
    (first of all I know this forum doesn't apply to web programming, but I thought this relevant because it has to do with OSX directory structure)

    I'm a little confused. I wanted to run some PHP right on my Mac, uncommented httpd.conf, activated web sharing, installed MySQL etc.

    I can't seem to find my PHP files, most importantly, PHP.ini.

    On my old machine it was located in /usr/local/php5/lib
    But PHP5 doesn't exist in /usr/local..

    Do I need to get a package or am I looking in the incorrect place?

    Running OS X 10.7.3, PHP 5.3.8, Apache/2.2.21
  2. chown33 macrumors 604

    Aug 9, 2009
    Sailing beyond the sunset
  3. robvas macrumors 68030

    Mar 29, 2009
    Is the database for locate created by default in OS X?

    There's a file /etc/php.ini.default

Share This Page