Created
October 23, 2011 21:10
-
-
Save zachbrowne/1307892 to your computer and use it in GitHub Desktop.
Setting up APC and Memcache on Ubuntu
This file contains hidden or 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
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