Skip to content

Instantly share code, notes, and snippets.

@rek
Last active August 29, 2015 13:56
Show Gist options
  • Save rek/9342741 to your computer and use it in GitHub Desktop.
Save rek/9342741 to your computer and use it in GitHub Desktop.
Compile APC extension for apache2
wget http://pecl.php.net/get/APC-3.1.13.tgz
tar xvzf APC-3.1.13.tgz
cd APC-3.1.13
/usr/local/bin/phpize-5.4
./configure --with-php-config=/usr/local/php54/bin/php-config
make
cp modules/apc.so ~/.php/5.4/
rm -Rf APC-3.1.13
extension = phar.so
suhosin.executor.include.whitelist = phar
extension = intl.so
extension = ~/.php/5.4/apc.so
apc.enabled=1
apc.enable_cli=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment