六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 36|回复: 0

Review Board on Ubuntu System(I)Installing and create sites

[复制链接]

升级  34.8%

548

主题

548

主题

548

主题

探花

Rank: 6Rank: 6

积分
1696
 楼主| 发表于 2013-2-4 13:40:41 | 显示全部楼层 |阅读模式
Review Board on Ubuntu System(I)Installing and create sites

1. Installing
1.1. Installing Python Setuptools
>sudo apt-get install python-setuptools

upgrade the tool
>sudo easy_install -U setuptools

1.2. Installing Python Development Headers
>sudo apt-get install python-dev

1.3. Installing memcached
>sudo apt-get install memcached
>sudo easy_install python-memcached

1.4. Installing patch
>sudo apt-get install patch

1.5. Installing Review Board
>easy_install ReviewBoard
This will automatically download and install the latest stable release of Review Board and the required
versions of its core dependencies.

1.6. Installing Database Bindings
mysql is already on my system.
>sudo easy_install mysql-python

1.7. Installing Source Control Components
Git
>sudo apt-get install git-core

1.8. Installing Amazon S3 Support(optional)
>sudo easy_install django-storages

1.9. Installing PyLucene(optional)
>sudo apt-get install pylucene

2. Creating Sites
2.1 database
prepare the database, connect to my local mysql and create a schema named 'reviewboard'

2.2 Beginning Installation
>sudo rb-site install /var/www/reviews.sillycat.com

2.3 Changing Permissions
>sudo chown -R www-data /var/www/reviews.sillycat.com/htdocs/media/uploaded

2.4 configuration in apache
/var/www/reviews.sillycat.com/conf/
>cd /etc/apache2/sites-available
>cp /var/www/reviews.sillycat.com/conf/apache-modpython.conf reviews.sillycat.com.conf
>cd ../sites-enabled
>sudo ln -s ../sites-available/reviews.sillycat.com.conf

Install some modules
>sudo apt-get install libapache2-mod-python libapache2-mod-python-doc
>sudo root
>/etc/init.d/apache2 restart

>vi /etc/hosts
127.0.0.1 reviews.sillycat.com

>vi /etc/apache2/sites-enabled/reviews.sillycat.com.conf
change the port from 80 to 81. Because I have install many other web servers on my system. 80 is taken by nignx.

>vi /etc/apache2/ports.conf
add 2 lines there
NameVirtualHost *:81
Listen 81
NameVirtualHost *:86
Listen 86

visit this URL:
http://reviews.sillycat.com:86/reviews/

references:
http://blog.csdn.net/Uranuslei/archive/2009/02/23/3926704.aspx
http://www.reviewboard.org/
http://www.reviewboard.org/docs/manual/dev/admin/installation/linux/
http://www.reviewboard.org/docs/manual/dev/admin/sites/creating-sites/#creating-sites
http://blog.csdn.net/Uranuslei/article/details/3926704
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表