Installing ReviewBoard 2.0.x on ubuntu 12.04.x

Last Modified on 2014.07.09 @ 09:00

Installing ReviewBoard 2.0.x on ubuntu 12.04.x

01. Install Prerequisites :

$ sudo aptitude install libapache2-mod-wsgi libcache-memcached-perl memcached patch python-dev python-ldap python-setuptools subversion python-svn python-subvertpy


02. Install ReviewBoard:

$ sudo easy_install ReviewBoard


03. Installing Database Bindings:

$ sudo easy_install mysql-python


04. Installing Development Tools (optional). If you plan to work on Review Board’s source code, there are a few additional packages you’ll need to install:

$ sudo easy_install nose Sphinx


05. Create MySQL database:

$ mysql -uroot -p

mysql> create database reviewboard;

mysql> grant all on reviewboard.* to ‘root’@’localhost’;

mysql> exit


06. Creating a Review Board Site:

$ sudo rb-site install /var/www/reviewboard

Domain Name:

Root Path [/]: /

Note: While useful and portable, SQLite does not handle large loads with many concurrent users very well, use MySQL.

Database Type: 1

Database Name [reviewboard]: reviewboard

Database Server [localhost]: localhost

Database Username: root

Database Password: ROOTMySQLPASSWORD

Confirm Database Password: ROOTMySQLPASSWORD

Memcache Server [localhost:11211]: localhost:11211

Username [admin]: admin



E-Mail Address:


07. Configure Apache2:

$ sudo nano /etc/apache2/sites-available/reviewboard-apache-wsgi.conf


** Start copying below this line **


<VirtualHost *:80>


DocumentRoot “/var/www/reviewboard/htdocs”


# Error handlers

ErrorDocument 500 /errordocs/500.html

WSGIPassAuthorization On

WSGIScriptAlias “/” “/var/www/reviewboard/htdocs/reviewboard.wsgi/”

<Directory “/var/www/reviewboard/htdocs”>

AllowOverride All

Options -Indexes +FollowSymLinks

Allow from all



# Prevent the server from processing or allowing the rendering of

# certain file types.

<Location “/var/www/reviewboard/htdocs/media/uploaded”>

SetHandler None

Options None

AddType text/plain .html .htm .shtml .php .php3 .php4 .php5 .phps .asp

AddType text/plain .pl .py .fcgi .cgi .phtml .phtm .pht .jsp .sh .rb

<IfModule mod_php5.c>

php_flag engine off



# Alias static media requests to filesystem

Alias /media “/var/www/reviewboard/htdocs/media”

Alias /static “/var/www/reviewboard/htdocs/static”

Alias /errordocs “/var/www/reviewboard/htdocs/errordocs”

Alias /favicon.ico “/var/www/reviewboard/htdocs/static/rb/images/favicon.png”



** Stop copying above this line **


08. Make link from sites-available to sites-enabled:

$ cd /etc/apache2/sites-available

$ sudo ln -s /etc/apache2/sites-available/reviewboard-apache-wsgi.conf /etc/apache2/sites-enabled/reviewboard-apache-wsgi.conf


09. Changing Permissions:

$ sudo chown -R www-data.www-data /var/www/reviewboard/htdocs/media/uploaded

$ sudo chown -R www-data.www-data /var/www/reviewboard/data

$ sudo chown -R www-data.www-data /var/www/reviewboard/htdocs/media/ext

$ sudo chown -R www-data.www-data /var/www/reviewboard/htdocs/static/ext

$ sudo chown -R www-data.www-data /var/www/reviewboard/htdocs/media/uploaded

$ sudo chmod -R 644 /var/www/reviewboard/htdocs/media/uploaded

$ sudo service apache2 restart


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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s