Skip to content

Instantly share code, notes, and snippets.

@liverbool
Forked from TomK/php70-apcu.sh
Last active March 21, 2016 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liverbool/d31acc5323c7aa513c4b to your computer and use it in GitHub Desktop.
Save liverbool/d31acc5323c7aa513c4b 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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment