Review Board is provided as downloadable packages through Python setup tools, it is very easy way to install and configure the Review Board,

Review Board supports the following database servers, but we are going to use MySQL only.

  MySQL v5.0.31 or newer
  PostgreSQL
 
sqlite v3

And the following web servers, but we are going to use Apache Web Server only,

  Apache + mod_wsgi, fastcgi, or mod_python
  lighttpd +
fastcgi

Before you begin need to setup necessary packages,

Installing Python Setuptools

 # apt-get install python-setuptools

 # easy_install -U setuptools


Installing memcached

# apt-get install memcached 


python-memcached

# easy_install python-memcached


Installing patch

#apt-get install patch 


Now, Let's start to install Review Board,

# easy_install ReviewBoard 

If you may get an error like,

No valid C compiler 


You need to install support packages,

#apt-get install libssl-dev

# apt-get install libfi-dev

#apt-get install python-dev

#apt-get install build-essentials


install MySQL Server,

# sudo apt-get install mysql

# pip install mysql-python

# apt-get install python-dev

#apt-get install python-mysqldb

#sudo apt-get install libmysqlclient-dev 


Installing Database Bindings

#easy_install mysql-python


Installing Source Control Components

CVS

#apt-get install cvs


Git

#apt-get install git-core


Mercurial

#easy_install mercurial


Perforce

#easy_install P4PythonInstaller


Subversion

#apt-get install subversion python-svn


 PyLucene

# apt-get install pylucene


Creating the Database

Open your MySQL database configuration  file my.cnf, add the following settings:


[client]
default-character-set=utf8

[mysqld]
character-set-server=utf8

 # mysql -u root -p


mysql> CREATE DATABASE reviewboard CHARACTER SET utf8;

mysql> GRANT ALL PRIVILEGES ON reviewboard.* to 'ubuntu'@'localhost' IDENTIFIED BY 'password';


Web Configuration:

 # rb-site install /var/www/reviews.example.com


domain name : 192.168.2.100
root path : /

database type : (1) mysql

Database Name [reviewboard]: 

Database Server [localhost]:

Database Username: ubuntu

database password : password

Memcache Server [localhost:11211]:

Username [admin]:

Password:

E-mail Address : youremail@thelinuxfaq.com

Company/Organization Name (optional):

Allow us to collect support data? [Y/n]:


Give the right permission,

# chown -R www-data /var/www/reviews.example.com/htdocs/media/uploaded

# chown -R www-data /var/www/reviews.example.com/data

# cd /etc/apache2/sites-available

# cp /var/www/reviews.example.com/conf/apache-wsgi.conf  reviews.example.com.conf

# cd ../sites-enabled

# ln -s ../sites-available/reviews.example.com.conf .


Installing mod_wsgi

 # aptitude install libapache2-mod-wsgi


Check your apache port number

# vim /etc/apache2.ports.conf

listen 80

# vim /etc/hosts

192.168.2.100 thelinuxfaq-reviewboard.com 

Finally, Open your browser and use your IP address or hostname,

http://192.168.2.100/

username : admin
passwd :SKL%RF3U&AJSJ