Last active
December 26, 2015 16:38
-
-
Save danielbwa/7181067 to your computer and use it in GitHub Desktop.
memcache to php on OSX 10.9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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