![mamp memcache mamp memcache](https://i.stack.imgur.com/qsE5S.png)
Check to include the Memcached Server in GroupStart. The key part is to find where other PHP extensions are kept, and copy the new extension to that location.Ĭp modules/memcache.so /Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/ Enable & Test memcache. Memcached is an in-memory key-value store for small chunks of arbitrary data. Note that if you're building on MAMP 1.9 / PHP 5.3, these paths will probably be slightly different.
![mamp memcache mamp memcache](https://3.bp.blogspot.com/-com231aXq9E/XKHHqjUqdWI/AAAAAAAAGoc/6vsNHwv6bU8_F5Gp64sfx-FbDZs_PiiVACLcBGAs/s1600/CustomBlockList.png)
There's a couple things to note about that command: we're asking it to compile both i386 (32 bit) and x86_64 (64 bit) versions of the library, and we're using MAMP's PHP config to do it.įinally, copy the built library into your PHP extensions directory. configure -with-php-config=/Applications/MAMP/bin/php5/bin/php-config Now, from the memcache-2.2.6 directory, run phpize to create the config file: Ln -s /Developer/SDKs/MacOSX10.5.sdk/usr/include/ /Applications/MAMP/bin/php5/include For PHP 5.3, you should use the 10.6 SDK.
![mamp memcache mamp memcache](https://www.noelboss.com/media/2015/09/IMG_2326-1030x773.jpg)
If you're using PHP 5.2, you should use the 10.5 SDK, as OS X 10.5 came with PHP 5.2. Note that there is a MacOS X 10.5 SDK and a 10.6 SDK. MAMP doesn't include the PHP C header files, so you need to link them in from the Apple Developer SDK folder. Tar xvfz memcache-2.2.6.tgz & cd memcache-2.2.6 This is the easiest way:Įxtact the source & enter the memache-2.2.6 dir: