Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 18, 2012, 10:52 AM   #1
orvn
macrumors 6502
 
Join Date: Jan 2011
Location: Toronto, Canada
Where is php.ini in Lion?

(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.

Last edited by orvn; Feb 18, 2012 at 11:04 AM.
orvn is offline   0 Reply With Quote
Old Feb 18, 2012, 11:26 AM   #2
CheesePuff
macrumors 6502
 
Join Date: Sep 2008
Location: Rochester, NY
should be in /etc
CheesePuff is offline   0 Reply With Quote
Old Feb 18, 2012, 11:51 AM   #3
chown33
macrumors 603
 
Join Date: Aug 2009
Terminal command line:
Code:
locate php.ini
chown33 is online now   0 Reply With Quote
Old Feb 18, 2012, 01:26 PM   #4
robvas
macrumors 68000
 
Join Date: Mar 2009
Location: USA
Quote:
Originally Posted by chown33 View Post
Terminal command line:
Code:
locate php.ini
Is the database for locate created by default in OS X?

There's a file /etc/php.ini.default
robvas is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Tags
lion, php, php.ini

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
[php] - php problems os x mountain lion 10.8.2 cakas6933 OS X 10.8 Mountain Lion 4 Jun 10, 2014 08:08 AM
why does DU show windows.boot.ini files updated when I don't have windows on my mac GlowJoy MacBook Pro 1 Feb 22, 2014 07:41 PM
OS X: Locating [.ini] and [.cfg] files? Morgan Stack Mac and PC Games 7 May 14, 2013 03:19 AM
.ini file will not display my ico silvercircle Mac Programming 3 Jan 27, 2013 03:19 PM
Trying to upgrade the native PHP installation on Mountain Lion s97fever Mac Programming 0 Jan 22, 2013 05:26 PM

Forum Jump

All times are GMT -5. The time now is 11:00 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC