Build a Reviewboard on CentOS

Source: Internet
Author: User

ReviewBoard is a relatively good, based on the WEB code review tool, detailed introduction can see its official website: http://www.reviewboard.org. If you want to use ReviewBoard for free in your project, you need to deploy it on your own (to be honest, the process is still quite painful ).

Install ReviewBoard on Ubuntu Server

This article takes the CentOS system as an example and provides detailed installation steps one by one, hoping to bring you a little convenience.

First, make sure that your CentOS system contains Apache, Mysql, and python. This article uses CentOS6.4. The versions of the above three programs are Apache/2.2.15, Mysql5.1.73, and python2.6.

In addition, make an update before starting the installation:

Yum update

Next, execute the following commands in sequence:

Yum install python-setuptools

Yum install python-devel

Yum install mod_wsgi

Yum install memcached

Easy_install python-memcached

Yum install patch

Easy_install ReviewBoard (more time, slower)

Easy_install mysql-python

If everything is okay, congratulations, ReviewBoard has been installed. Next, you need to build your ReviewBoard site.

First, create a database in Mysql and set the attributes:

Mysql-uroot-h127.0.0.1-P3306-p

> Create database reviewboard default charset utf8 collate utf8_general_ci;

> Grant all privileges on reviewboard. * TO 'reviewboard' @ '2014. 0.0.1 'identified by 'reviewboard ';


In this way, you will not worry about Chinese characters. Remember, the database name is reviewboard, which will be used later in configuration.

Then, run the rb-site command to configure the site:

Rb-site install/var/www/reviewboard


According to his prompt, set step by step. It is best to follow the default one:

-Domain Name: reviews.com.cn

-Root Path [/]:/

-Media URL [media/]: media/

-Database Type: mysql

-Database Name [reviewboard]: reviewboard (the Name of the table created above)

-Database Server [localhost]: 127.0.0.1

-Database Username: reviewboard (do not change)

-Database Password: reviewboard (do not change)

-Cache Type: memcached

-Memcache Server [localhost: 11211/]: localhost: 11211/

-Web Server: apache

-Python Loader: wsgi

-Username [admin]: admin (you can use admin)

-Password: admin)

-E-mail Address: yours@email.com.cn

If everything goes well, the rb-site tool initializes the database, including creating tables and inserting initial data.

Finally, you need to configure the CentOS system:


1. chown-R apache: apache/var/www/reviewboard/

2. cp/var/www/reviewboard/conf/apache-wsgi.conf/etc/httpd/conf. d/

3. in the site directory/var/www/reviewboard/conf, you can see the apache-wsgi.conf file. This is the automatically generated configuration file, to add it to the httpd of apache. in conf, copy directly to the end.

4. Restart the httpd service.

5. setsebool httpd_can_network_connect 1

6. setsebool httpd_can_network_connect_db 1

OK! So far, if you are lucky, you can access the http site through a browser.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.