OSX Upgrade to Lion Went Well, and So Far Native PHP and MySQL Server Playing Nice
Billy Heaton
1 min read
So I...
- Ran Software Update,
- backed up with Time Machine,
- repaired disk permissions,
- and verified my disk.
- Then purchased Lion in the app store on my mac.
- Made a backup of my /private/etc/php.ini file
- Installed Lion
Ran Software Update again, e.g. for Java updates
Next, I checked my localhost/phpmyadmin and checked my phpinfo.php files. The
article 'Fixing mysql in OS X Lion upgrade' (link above) was correct. I needed
to:Place my copy of php.ini back to its original location at /private/etc/php.ini
Update the php.ini file to change mysqli setting… ;mysqli.default_socket = /var/mysql/mysql.sock mysqli.default_socket = /tmp/mysql.sock
My current LAMP dev projects seem just fine so far. Notes on localhost
environment on Lion :
- mysql -version mysql Ver 14.14 Distrib 5.5.12, for osx10.6 (i386) using readline 5.1
- php -version PHP 5.3.6 with Suhosin-Patch (cli) (built: Jun 16 2011 22:26:57)
- httpd -v Server version: Apache/2.2.19 (Unix)