Skip to content

Instantly share code, notes, and snippets.

@danielbwa
Last active December 26, 2015 16:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielbwa/7181067 to your computer and use it in GitHub Desktop.
Save danielbwa/7181067 to your computer and use it in GitHub Desktop.
memcache to php on OSX 10.9
Install memcached with PHP support on OSX:
Download PEAR
curl -O http://pear.php.net/go-pear.phar
sudo php -d detect_unicode=0 go-pear.phar
Configure and Install PEAR
You should now be at a prompt to configure PEAR.
Type 1 and press return.
Enter: /usr/local/pear
Type 4 and press return.
Enter: /usr/local/bin
Press return
Verify PEAR
You should be able to type: pear version
So now we have PEAR and pecl.. let's install memcache:
1. sudo pecl install memcache
2. add extension=memcache.so to /etc/php.ini
3. sudo apachectl restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment