How to Enable PHP5 In Mac OS X Leopard

I’ve seen a lot of visitors searching for information on enabling PHP5 in Mac OS X Leopard. It turns out to be quite easy. Leopard ships with Apache 2 and PHP 5 pre-installed. To enable PHP simply: Open your favorite text editor and edit /private/etc/apache2/httpd.conf Uncomment line number 114. It should read LoadModule php5_module libexec/apache2/libphp5.so Open System Preferences and go to Sharing Stop and then restart Web Sharing That’s it! PS – If you want any easy way to setup and manage virtual hosts on your Mac, check out VirtualHostX.

My Favorite New Leopard Feature

Select a file in Finder and press ↩ to rename it. Finder now excludes the file extension from the initial text selection. This leaves you free to type a new name without overwriting over the extension.

Leopard First Impressions

If you squint your eyes and look to the side of your monitor, Leopard is actually quite attractive. VirtualHostX is broken at the moment. That’ll be fixed as soon as I roll out Apache 2 support. The new iCal is hot. I love that there is now a physical separation between local and subscribed calendars. I just noticed all pop-up menus have rounded corners – feels very Web 2.0 inspired. My PHP5/MySQL install got borked. Solution… sudo mkdir /var/mysql sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock Enable PHP5 /private/etc/apache2/httpd.conf (line 114) Add your vhosts to /private/etc/apache2/extra/httpd-vhosts.conf Why does the Finder sidebar use …

Read more

What is Twitter?

Nat from O’Reilly Radar: It reminded me of the time in my mis-spent youth when I got lost in IRC, spending evenings heckling the TV with my IRC friends. This is the geek equivalent of being stoner, by the way, with roughly the same effect on cognition . . . It’s a very loosely-coupled conversation. Spot on. An interesting (but probably useless) hack would be to take an opensource IRC client and wrap it around Twitter’s API.

foo9 URL Shortener

I was out of town for a couple days last week and had a lot of time to kill at my hotel. Needing something to do I decided to write my own URL shortening service. This is hardly an original idea – TinyURL.com has been around for a long time. Newcomer url(x) is great, too. However, there are changes I’d like to see made to both sites so I decided to roll my own. Plus, it turned out to be a fun computer science-y puzzle (more on that later). I’ve called my shortening service foo9.net. First off, I wanted the …

Read more