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

    macrumors 6502

    Joined:
    Jan 11, 2011
    Location:
    Toronto, Canada
    #1
    (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
    Thanks.
     
  2. macrumors 6502

    Joined:
    Sep 3, 2008
    Location:
    Rochester, NY
  3. macrumors 603

    Joined:
    Aug 9, 2009
  4. macrumors 68000

    Joined:
    Mar 29, 2009
    Location:
    USA
    #4
    Is the database for locate created by default in OS X?

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

Share This Page