First time here? Check out the FAQ!

How can i run multiple instances of askbot on a server?

Currently I'm successfully running a askbot instance When I try to install the second instance at, and gets content from each other randomly despite having a different databases and configs. I use virtualenv for setting up askbot on both sites using pip.

Server Environment: Nginx, Mysql, uWSGI, Python 2.6

I use this script for starting uwsgi as service,

I use this config in nginx, = =

Difference beetween the two sites is, doesn't have any question whereas have one question "How're you today?". If you refresh them both randomly, my issue can be regenerated, i.e the question will randomly appear on both sites.

naavi's avatar
asked 2012-06-23 16:49:21 -0500, updated 2012-06-24 00:50:28 -0500
edit flag offensive 0 remove flag close merge delete


add a comment see more comments

1 Answer


The issue is due to cache "mixups" between the sites.

edited: with Django 1.3 you could try setting up CACHES settings variable and add distinct KEY_PREFIX value to all of your sites.

For example:

    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': 'unix:/tmp/memcached.sock',
        'KEY_PREFIX': 'siteA',

That way caches will be differentiated between sites and you can host several on the same server.

Evgeny's avatar
answered 2012-06-23 17:59:37 -0500, updated 2012-07-21 21:13:29 -0500
edit flag offensive 0 remove flag delete link


I'm not sure how to have separate cache engines.

naavi's avatar naavi (2012-06-24 01:24:40 -0500) edit

@Evgeny : about multi-site implementation, did you already documented what you plan to implement ? It also need this features asap so I can contribute on this point

Alban's avatar Alban (2012-06-26 03:10:51 -0500) edit

@Evgeny Is it possible to rectify this issue at the earliest? Will donation help to accelerate? If yes, what amount?

naavi's avatar naavi (2012-06-28 23:10:35 -0500) edit

@rovni, thanks! Please save your donation for something else:). I will fix this tomorrow.

Evgeny's avatar Evgeny (2012-06-29 00:08:42 -0500) edit
add a comment see more comments