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.youkuaiyun.com/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.youkuaiyun.com/Uranuslei/article/details/3926704
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.youkuaiyun.com/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.youkuaiyun.com/Uranuslei/article/details/3926704
本文详细介绍了如何在Ubuntu系统上通过安装Python、memcached等依赖,使用Easy Install工具安装ReviewBoard,并创建站点的过程。同时,还涉及了数据库配置、权限设置、修改配置文件以及设置自定义域名等步骤。
8万+

被折叠的 条评论
为什么被折叠?



