kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] dw_dev2009-06-07 01:04 pm
Entry tags:

memcache on a dreamhack?

Does anyone have any tips for getting memcache to work on a dreamhack?

The instructions on the wiki assume you have root and can use apt-get.

Thanks in advance!
exor674: Computer Science is my girlfriend (Default)

[personal profile] exor674 2009-06-07 07:37 pm (UTC)(link)
You probably need to work with [personal profile] sophie, as she'll need to assign you a port your memcached can work on and stuff.
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2009-06-09 01:15 pm (UTC)(link)
So, as you know, we got you sorted for this. For anyone else who wants to use memcache on their Dreamhack:

* Let me or Fu (depending on whose box you're on) know, first, so you can be assigned a port that you can use for memcached.

* You'll then want to run memcached in a screen session, as it runs in the foreground. The command you want to run in screen is:

memcached -p <port>

where <port> is the port number you were given.

* Finally, you'll want to edit your etc/config-local.pl file. Look for this line:

#@MEMCACHE_SERVERS = ('hostname:port');

and change it to:

@MEMCACHE_SERVERS = ('127.0.0.1:<port>');

again replacing <port> with the appropriate port number. (Make sure also that the line is uncommented by removing the # at the front.)

This, I think, should be all that's needed.
Edited 2009-06-09 13:16 (UTC)