Re: New to mac and trying to define a php.ini file.
| From: | TR Shaw | Date: | Wed, 04 Jan 2012 14:44:28 +0000 |
| Subject: | Re: New to mac and trying to define a php.ini file. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-316163@lists.php.net to get a copy of this message | ||
On Jan 4, 2012, at 9:09 AM, Richard Quadling wrote:
> Hi.
>
> Where do I put my php.ini file for a MacBook Air? I've only had it 2
> days and having trouble with the date.timezone setting.
>
Open terminal
type
php -i
search for php.ini
you will find it in /etc where is should be on unix.
If you want to keep php up to date and are on Snow (10.6) or Lion (10.7) go to http://php-osx.liip.ch/
> I've also had to install xampp (recommended - no idea about it) for
> Apache with PHP.
>
Why did you do that? All you had to do was to edit /etc/apache2/httpd.conf to turn on php (and
don't forget to tu6n on apache via prefs->sharing->websharing
> Different versions of PHP now installed.
>
> Default from command line is PHP 5.3.6 with Suhosin-Patch (cli)
> (built: Sep 8 2011 19:34:00)
>
> The one that XAMPP installed is 5.3.1 and I've found the ini file for
> this is in /Applications/XAMPP/xamppfiles/etc/php.ini
>
> How, can or should I upgrade my PHP to a later release? Oh the joy of
> Windows Binaries!!!!
You are on unix. Stuff is usually where it is supposed to be.
Tom