Skip to content

Instantly share code, notes, and snippets.

@zymawy
Forked from Niteshvgupta/readme.md
Created April 5, 2021 21:22
Show Gist options
  • Save zymawy/dc3f49a10918f3e66792c2a3e278888e to your computer and use it in GitHub Desktop.
Save zymawy/dc3f49a10918f3e66792c2a3e278888e to your computer and use it in GitHub Desktop.
Install PHP7-compatible memcache on Mac OS X

1. Install PHP7 with brew

brew install php70

2. Install Memcache from source on PHP7 branch

git clone -b NON_BLOCKING_IO_php7 https://github.com/websupport-sk/pecl-memcache.git
cd pecl-memcache
phpize
./configure
make && make install

3. Add the Memcache extension to the php.ini for PHP7

vi /usr/local/etc/php/7.0/php.ini

Add extension=memcache.so under the extensions section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment