Memcache on Ubuntu 10.04

What is Memcache?

Memcache PHP client comparison. (memcache and memcached)

Download memcache and memcached
#apt-get update
#apt-get install php5-dev
#apt-get install php-pear

Lets Begin!!!

Install the server and php extention:
#apt-get install memcached
#pecl install Memcache

Edit your php.ini:
#vi /etc/php5/apache2/php.ini

Add the following line add the end of the file and save the changes:

The memcached configuration file can be found here: /etc/memcached.conf

Restart Apache:
service apache2 restart

Start memcached with the default configuration:
service memcached start


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s