Posts Tagged ReviewBoard

How to install ReviewBoard on RHEL 5

Installing Python Setuptools
# yum install python-setuptools
# easy_install -U setuptools

Installing Python Develoopment Headers
# yum install python-devel

Installing memcached
# rpm -Uvh http://mirrors.kernel.org/fedora-epel/5/x86_64/epel-release-5-4.noarch.rpm
# yum install memcached
# easy_install python-memcached

Installing Patch
# yum install patch

Installing Review Board
# easy_install ReviewBoard
Wait until you see the message "Finished processing dependencies for ReviewBoard".

Installing Database Bindings
# yum install MySQL-python
# easy_install mysql-python

Installing Source Control Components
# yum install cvs
# yum install git-core
# yum install subversion
# yum install pysvn

Mercurial
# easy_install mercurial

Perforce
# easy_install P4PythonInstaller

Installing Amazon S3 Support
# easy_install django-storages

Installing Development Tools
# easy_install nose Sphinx

Creating Database
# mysql -uroot -h127.0.0.1 -P3306 -p
> create database reviewboard;
> GRANT ALL PRIVILEGES ON reviewboard.* TO 'reviewboard'@'127.0.0.1' identified by 'reviewboard';
> GRANT ALL PRIVILEGES ON reviewboard.* TO 'reviewboard'@'127.0.0.1' identified by 'reviewboard';

Creating a Review Board Site
# rb-site install /var/www/reviewboard

- Domain Name: reviews.heylinux.com
- Root Path [/]: /reviews/
- Media URL [media/]: media/
- Database Type: mysql
- Database Name [reviewboard]: reviewboard
- Database Server [localhost]: 127.0.0.1
- Database Username: reviewboard
- Database Password: reviewboard
- Cache Type: memcached
- Memcache Server [memcached://localhost:11211/]: memcached://localhost:11211/
- Web Server: apache
- Python Loader: wsgi
- Username [admin]: admin
- Password: admin
- E-Mail Address: guosuiyu@gmail.com

Then you will see:
---
* The site has been installed

The site has been installed in /var/www/reviewboard

Sample configuration files for web servers and cron are available
in the conf/ directory.

You need to modify the ownership of the following directories and
their contents to be owned by the web server:
* /var/www/reviewboard/htdocs/media/uploaded
* /var/www/reviewboard/data

For more information, visit:

http://www.reviewboard.org/docs/manual/dev/admin/sites/creating-
sites/
---

Configuring Apache
# yum install mod_wsgi
# chown -R apache:apache /var/www/reviewboard/
# cp /var/www/reviewboard/conf/apache-wsgi.conf /etc/httpd/conf.d/

# vim /etc/httpd/conf/httpd.conf
Add the follow item:
---
LoadModule wsgi_module modules/mod_wsgi.so

# vim /etc/httpd/conf.d/apache-wsgi.conf
Change the port into 8080:
---
<VirtualHost *:8080>

# /etc/init.d/httpd restart

Done
Now you can access http://reviews.heylinux.com:8080/reviews/

12 Comments

Fork me on GitHub