Installing memcached to use it with php
February 13, 2015
· Admin
Ubuntu 11.10
Unix
Ubuntu 11.04
Ubuntu
Ubuntu 12.04
memcache
PHP
apache
Ubuntu 14.04
Installing Memcached with php support in Ubuntu is a matter of a few steps:
sudo apt-get install memcached php5-memcached
sudo service apache2 restart
You can test if memcached is active by running this command:
echo "stats settings" | nc localhost 11211
You will end up with a response like this one:
STAT maxbytes 67108864 STAT maxconns 1024 STAT tcpport 11211 STAT udpport 11211 STAT inter 127.0.0.1 ... STAT item_size_max 1048576 STAT maxconns_fast no STAT hashpower_init 0 STAT slab_reassign no STAT slab_automove 0 END
Copyright 2012–2026, Claude "Tryphon" Théroux