Enabling memcache under MAMP

I know the tech is a bit old, but sometimes you need to make do with the tools you’ve been given. Here’s how I enabled memcache under MAMP.

First, grab the precompiled binary file (memcache.so) from here. There were no problems using this on Snow Leopard (for me, at least).

Second, copy the file to your MAMP extensions directory. You should be able to find it here: /Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-[date].

Next, you’ll need to enable the extension in MAMP. Switch it off, then open up php5.ini by going to File > Edit Template > PHP5 php.ini

Find the extensions section (about line 540 or so) and add this line to the list of extensions:

Once that’s done, save php.ini and reboot MAMP. You should be able to see an entry for memcache when opening your phpinfo page.

“Boyfriend went Vegan”

Here’s one of many new ads aimed at promoting veganism (a noble goal, I’m sure) by our good friends over at PETA.

A HA HAHA HAHA HA HA HA

Wait. This isn’t funny or clever, it’s an abomination. If I were vegan, I’d pretend that I wasn’t until this atrocious “marketing” campaign passed and we all walked around like it never happened.

“Remember those ads by PETA?”
“Wha- what? HELL NO. Let’s go eat some cabbage.”
“Rock on, pasty friend.”

Yeah, just like that.

Vegans get all the breaks
The battered wife look is so hot right now

Reclaiming your favicons when using MAMP

I use MAMP Pro to manage my local virtual hosts. It’s about a hundred times more convenient than Apple’s “native” Apache/PHP install (unfortunately a sad truth).

One annoying facet, though, is that MAMP will force its favicon when you’re using a MAMP-managed virtual host. Here’s how to get rid of this “feature” and reclaim your presumably awesome favicon.

First, make sure MAMP is not running Apache. Then, go to File > Edit Template > Apache httpd.conf

Once you’ve got the configuration file open, look for the line (roughly 625 for me):

Alias /favicon.ico "/Applications/MAMP/bin/favicon.ico"

and comment it out with a hash (#). Save your configuration, then reboot MAMP’s Apache server. You might have to flush your browser’s cache before it recognises your own favicons.

This took way too long to fix, so I hope this helped someone else.