-
-
Save liverbool/d31acc5323c7aa513c4b to your computer and use it in GitHub Desktop.
PHP7 APCU
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
#!/bin/bash | |
# make sure you switch to php70 | |
brew unlink php56 && brew link php70 | |
# checkout and build | |
git clone [email protected]: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