Last Updated: February 25, 2016
·
2.873K
· pykler

Installing ReviewBoard on Debian

I prefer installng deb packages, but I could not find a ppa with a quick search ... my next protip maybe in setting up the ppa :) ... here is the quick howto install adapted to debian.

Switch to root

sudo su -

Proceed (requires virtualenv to be installed ... )

# python dev headers
apt-get install python-dev
# memcached
apt-get install memcached
insserv memcached -v
# review board
mkdir -p /opt/reviewboard; cd /opt/reviewboard
virtualenv --distribute --system-site-packages venv
source venv/bin/activate
easy_install ReviewBoard # it does not like pip yet
pip install psycopg2 # if using postgres
pip install mercurial==2.2 # if using HG
apt-get install pylucene # easier with apt-get, hence the system wide site-packages

Now RB is installed, we proceed with creating your site and getting it up and running, do not exit the virtualenv just yet.

rb-site install /var/www/rb.example.com # answer all the questions
# assuming you are using mod_wsgi and apache2
chown www-data:www-data -R /var/www/rb.example.com/data /var/www/rb.example.com/htdocs/
cp /var/www/rb.example.com/conf/apache-wsgi.conf /etc/apache2/sites-available/rb
cd /etc/apache2/sites-enabled/
ln -s ../sites-available/rb
cat <<EOF /var/www/rb.example.com/htdocs/reviewboard.wsgi >rb.wsgi
activate_this = '/opt/reviewboard/venv/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
EOF
mv rb.wsgi /var/www/rb.example.com/htdocs/reviewboard.wsgi
/etc/init.d/apache2 restart

That All Folks! now go to rb.example.com (after setting up dns to point to your server, or mess with your hosts file) and you are up and running.

2 Responses
Add your response

There's a typo at installing memcache part

over 1 year ago ·

@kimiamania Thanks for spotting that :)

over 1 year ago ·