Skip to content

Instantly share code, notes, and snippets.

@TomK
Last active March 21, 2016 11:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save TomK/c0725388ca230aad1dec to your computer and use it in GitHub Desktop.
Save TomK/c0725388ca230aad1dec to your computer and use it in GitHub Desktop.
PHP7 APCU
#!/bin/bash
# make sure you switch to php70
brew unlink php56 && brew link php70
# checkout and build
git clone git@github.com:krakjoe/apcu
cd apcu
git checkout seven
make clean
phpize
./configure
make -j 4
make install
cd ..
rm -rf ./apcu
# add extension
echo "extension=apcu.so" > /usr/local/etc/php/7.0/conf.d/ext-apcu.ini
echo "apc.enable_cli = On" >> /usr/local/etc/php/7.0/conf.d/ext-apcu.ini
@joelpittet
Copy link

Awesome, this did the trick:)

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