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.