现在的位置: 首页 > 综合 > 正文

ReviewBoard on ubuntu 9.0.4 Server — Installation

2013年08月16日 ⁄ 综合 ⁄ 共 3239字 ⁄ 字号 评论关闭

 

Installation from Review board admin guide
:

 

 

The following steps came from here
:

 

 

I modify minor place by my environments (ubuntu-9.04-server-amd64.iso):

 

1. Setting up compiling evironment 

I'm not sure, seems these steps aren't related with Review board, I use these to install Vmware tools on the Ubuntu Server.

sudo apt-get install gcc (Actually, it's  needless. Just for a record.)

sudo atp-get install build-essential (gcc is dependency of build-essential)

2. Setting up easy_install

sudo
apt-get install python-setuptools

sudo apt-get install
python-dev

3. Setting up a Server

I chose to use Apache2 with mod_python, as advised by the Review
Board team. Apparently there are some issues with running it as
fastcgi. To get an apache install capable of serving python pages:

sudo apt-get install apache2
sudo apt-get install libapache2-mod-python
sudo a2enmod python

4. Setting up storage

First we need to get MySQL and the python bindings for MySQL

sudo apt-get install mysql-server
sudo apt-get install python-mysqldb

For faster responses, we are going to install memcache and its python bindings.
sudo apt-get install memcached
#if 0
// I don't follow the steps.
sudo apt-get install memcached-dev
sudo apt-get install python-memcache
#else // This steps is recommend by admin guid of Reivewboard. sudo apt-get install libmemcache-dev sudo easy_install http://gijsbert.org/downloads/cmemcache/cmemcache-0.95.tar.bz2 #endif You will need to create a database and a database user for Review Board using the following.
mysql -uroot -p
mysql> create database reviewboard;
Query OK, 1 row affected (0.00 sec)
mysql> create user 'rb'@'localhost' identified by 'rb_password';
Query OK, 0 rows affected (0.00 sec)
mysql> grant all on reviewboard.* to 'rb'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> exit

Notice: there is ";“ followed by each command sentence.

5. Setting up Subversion

Review Board requires a Subversion client and python bindings, as well as the patch tool.

sudo apt-get install patch
sudo apt-get install subversion
sudo apt-get install python-svn

6. Getting Review Board

Review Board is installed using easy_install

. If you don't already have setup tools installed you will need to install it first.

sudo easy_install reviewboard

7. Creating your site

In this tutorial I am assuming that you are creating a dedicated
server for Review Board. This means that Review Board will be default
site. Installing as a subdomain is readily supported but I have not
tested it.

Start the site creator with:

sudo rb-site install /var/www/reviewboard
To serve Review Board as the root site, use the following settings:
  • Domain = localhost
  • Root Path = /
  • Media URL = media/
  • Database Type = mysql
  • Database Name = reviewboard
  • Database server = localhost
  • Database username = 'rb'
  • Database password: 'rb_password' or whatever you used earlier in step 4
  • Cache Type = memcache
  • Memcache Server = memcached://localhost:11211/ (This should be the default)
  • Webserver = apache
  • Python loader = modpython
  • Admin account - enter your details here

Then wait for all the little green ticks to appear.

6. Configuring your site

First you need to allow the apache server to manage the uploads directory with:

sudo chown -R www-data /var/www/reviewboard/htdocs/media/uploads

Then you need to copy the site configuration into apache and enable.
We are also going to disable the default site and then restart the
apache server.
sudo cp /var/www/reviewboard/conf/apache-modpython.conf /etc/apache2/sites-available/reviewboard
sudo a2dissite default
sudo a2ensite reviewboard
sudo /etc/init.d/apache2 restart

7. Installing PyLucene

This is an optional step.

We use PyLucene
for our search functionality. It can be complicated to
install, and requires a working Java installation.

$ sudo apt-get install pylucene

抱歉!评论已关闭.