Last active
March 21, 2016 11:15
-
-
Save TomK/c0725388ca230aad1dec 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 | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome, this did the trick:)