Skip to content

Instantly share code, notes, and snippets.

@samrose
Created August 22, 2013 18:51
Show Gist options
  • Save samrose/6311245 to your computer and use it in GitHub Desktop.
Save samrose/6311245 to your computer and use it in GitHub Desktop.
Drupal APC Steps Ubuntu 12.04 LTS Apache 2 mod_php
Pre-req:
apt-get install libpcre3-dev
pecl install apc
drush dl apc
edit /etc/php5/apache2/php.ini add:
extension=apc.so
sudo service apache2 restart
edit settings.php add:
/**
* Add APC Caching.
*/
$conf['cache_backends'][] = 'sites/all/modules/apc/drupal_apc_cache.inc';
$conf['cache_class_cache'] = 'DrupalAPCCache';
$conf['cache_class_cache_bootstrap'] = 'DrupalAPCCache';
cp cp /usr/share/php/apc.php to webdir to check
use devel module with query logging turned on to check query times.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment