I am trying to make memcache work on MAMP 1.9. In the process I have successfully installed memcached and tested it. But I can't find a way to install memcache.so on my MAMP. Any suggestions.


closed as off-topic by HopelessN00b, Ward, mdpc, Jim B, yagmoth555 Mar 21 '16 at 19:55

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – HopelessN00b, Ward, mdpc, Jim B, yagmoth555
If this question can be reworded to fit the rules in the help center, please edit the question.


I had this same problem today. I tried installing the memcache module using PECL and it turns out that PECL is compiling the module to a 64bit architecture. You can check the architecture by:

file /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/memcache.so

My result (working) is now this:

/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/memcache.so: Mach-O universal binary with 2 architectures
/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/memcache.so (for architecture i386): Mach-O bundle i386
/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/memcache.so (for architecture x86_64):       Mach-O 64-bit bundle x86_64

Previously it was just:

/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/memcache.so (for architecture x86_64):       Mach-O 64-bit bundle x86_64

I followed the steps in Matthias Schmidt's blog. The tutorial is for XAMPP but it should be the same (more or less) with MAMP.

  • Thanks. Can't give you 1 up, I don;t have enough points. But your solution worked perfectly. – Gautam Jun 25 '10 at 4:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.