Installing Memcached

Discover our Public Cloud offer

Shared Hosting for Everyone, imagined by developers, for developers.

Discovering the Public Cloud

Memcached is an object-oriented cache engine.

Here is a guide to installing it on the Public Cloud.

For Private Cloud users Memcached can be installed at server level.

In our example, we use the SSH access and consider the following information:

  • Account name: foo
  • Memcached directory: $HOME/memcached/
  • Port: 8300 (ports between 8300 and 8499 can be used)

[foo] must be replaced by the accurate account name.

Step 1: Installation

foo@ssh:~/memcached$ wget -O- http://memcached.org/latest| tar -xz --strip-components=1
foo@ssh:~/memcached$ ./configure && make

Step 2: Service launch

Create the following service:

  • Command : ./memcached -p 8300
  • Working directory : /home/[foo]/memcached

More options via $HOME/memcached/memcached -h.

By default anyone can connect to Memcached; there is no security. An authentication can be set up.

The next step is to configure the application to connect to Memcached using services-[foo].alwaysdata.net and port 8300.