PDA

View Full Version : Where is php.ini in Lion?




orvn
Feb 18, 2012, 10:52 AM
(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.



CheesePuff
Feb 18, 2012, 11:26 AM
should be in /etc

chown33
Feb 18, 2012, 11:51 AM
Terminal command line:
locate php.ini

robvas
Feb 18, 2012, 01:26 PM
Terminal command line:
locate php.ini


Is the database for locate created by default in OS X?

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