Orun Orun - 3 months ago 33
PHP Question

Where is PHP.ini in Mac OS X Lion? Thought it was in /usr/local/php5/lib

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 directory 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


mac mac
Answer Source

You should find it in /private/etc if it exists, otherwise:

sudo cp /private/etc/php.ini.default /private/etc/php.ini
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download