Archive for November, 2007

OS X Leopard Gotchas

Sunday, November 4th, 2007

I installed the new Apple OS X Leopard on my macbook pro last night. There are a few gotchas I came across because I want to keep using Apache, PHP and MySQL. Took me a couple of hours to fix this.

First, Apache in Leopard now uses Apache 2, so different configuration (and different location). The old location (Apache 1.3) was /private/etc/httpd/, while the new one is /private/etc/apache2/. Same with the log files. This one is not so bad. But in Apache 1.3, multiple ‘Listen’ directives are allowed, not so in Apache 2. I used to have the directive Listen 80 in my own httpd.conf (and Listen 8080 on the next line), and this directive also exists in the global httpd.conf. Works ok in Apache 1.3, but causes the error (48)Address already in use: make_sock: could not bind to address [::]:80 in Apache 2. Took me a long time to work this out, as googling this error message only says that you have multiple web server running (which I do not).

Then I have to enable PHP again, and also make a tweak for MySQL so that PHP will work again (http://angry-fly.com/index.cfm/2007/10/26/Fix-for-MySQL-on-Leopard). The good thing is at least MySQL is somehow running ok without the need to manually start it from the command line.

How’s Leopard I hear you say? (Well I probably didn’t hear you say that, just a voice in my head). It seems to be more responsive than Tiger. Finder has improved (but I still need dual-pane Finder). I haven’t used Time Machine yet, need to purchase an external hard disk first. Looks prettier. But also use up more memory (wouldn’t be so bad if Firefox in mac uses less memory).

$50 cup of Indonesian coffee

Sunday, November 4th, 2007

http://www.smh.com.au/news/national/a-sydney-you-probably-cant-afford/2007/11/03/1193619200177.html?s_cid=rss_news
I’m not sure what to think of this. $50 per cup for Kopi Luwak. On one hand, there’s pride in a home country beverage fetching a high price here. On the other hand, it’s so outrageously excessive.