`
sillycat
  • 浏览: 2539033 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

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

阅读更多
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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics