PHP5 and MySQL 5 on Leopard
Thursday, December 6th, 2007A few quick notes about building MySQL 5.x and getting it working under Leopard:
- Follow Dan Benjamin’s excellent MySQL on Leopard tutorial.
- Copy the PHP configuration example to the actual expected location: sudo cp /etc/php.ini.default /etc/php.ini
- Edit it, and add /private/tmp/mysql.sock to both mysql.default_socket and mysqli.default_socket.
- Save, and restart Apache: sudo apachectl graceful
Once completed, the default PHP5 setup that comes with Mac OS X 10.5.x will be able to communicate with the MySQL version built using the above linked tutorial. Time to get developing!
If you’re interested in making replacement icons for Mac OS X applications, the Leopard Developer Tools received an updated version of the Icon Composer utility, which combines multiple PNG images into one ICNS file. Once exported, the combined file is suitable for use inside an application bundle, by choosing Show Package Contents from the Finder’s action menu (or a right-click) and browsing to Contents/Resources/ and replacing the appropriate ICNS file (make sure to rename your icon to match the existing one!).
AppleScript is the hidden “glue” language that binds software on the Mac together and allows for unparalleled interaction between apps. When built into a program, it allows anyone with the right tools to automate nearly any function of the appication. In fact, it’s what Apple’s Automator is built upon, making AppleScript more accessible to end users who don’t want to know or care about things like variables and loops. Where Automator is as easy as drag-and-drop, programming AppleScript can be complicated (perhaps more so for seasoned programmers).
The night has come and gone, and Leopard is finally in the hands of thousands of Mac owners who are now getting their “new Mac” set up the way they prefer. While some found frustration with the Upgrade install, I backed up my important stuff and performed a full Erase and Install, resulting in a fresh system with no lingering apps or tweaks from the previous system. So far, my experience with Leopard has been a great one, with only a few software updates required to make things run like new. Here’s a run-down of some of the notes I made while getting software working: