Skip to content

Instantly share code, notes, and snippets.

@zachbrowne
Created October 23, 2011 21:10
Show Gist options
  • Save zachbrowne/1307892 to your computer and use it in GitHub Desktop.
Save zachbrowne/1307892 to your computer and use it in GitHub Desktop.
Setting up APC and Memcache on Ubuntu
apt-get install php-apc
/etc/init.d/apache2 restart
php -r ‘phpinfo();’ | grep ‘apc’ # See if output shows apc is on
apt-get install php5-memcache
nano /etc/php5/apache2/php.ini
# Change session.save_handler = files to
session.save_handler = memcache
session.save_path = “tcp://localhost:11211?persistent=1&weight=1&timeout=1&retry_interval=15″
/etc/init.d/apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment