Skip to content

Instantly share code, notes, and snippets.

@ceagan
Last active August 29, 2015 14:15
Show Gist options
  • Save ceagan/43990e80ac9ea627a4f6 to your computer and use it in GitHub Desktop.
Save ceagan/43990e80ac9ea627a4f6 to your computer and use it in GitHub Desktop.
Install Review Board 2.x on CentOS 7

!! Incomplete !!

Install Review Board

Prerequisites

EPEL Provides some of the required packages, including Review Board itself.

yum install epel-release

Install MariaDB. MariaDB is the community-developed version of MySQL.

yum install mariadb-server
systemctl enable mariadb.service
systemctl start mariadb.service

Run the secure installation tool to configure MariaDB/MySQL. Choose Yes to all the options for the most secure installation.

mysql_secure_installation

Save your root user's credentials in /root/.my.cnf.

[mysql]
password=secret

[mysqldump]
password=secret

Set permissions on the file to read-write for the owner only.

chmod 600 ~/.my.cnf

Install memcached for optimal performance.

yum install memcached
systemctl enable memcached.service
systemctl start memcached.service

Install Review Board

yum install ReviewBoard

Connect to the running MarisDB server.

mysql

Create a database for Review Board.

create database reviewboard;
grant all privileges on `reviewboard`.* to 'rb'@'localhost' identified by 'password';
exit

Create a Review Board site. Here, we use the name default.domain.com for the site.

rb-site install /var/lib/reviewboard/sites/default.domain.com

Allow web traffic through the Firewall.

firewall-cmd --permanent --add-service=http

Note: The output of netstat is deceiving. You will see Apache listening only on port 80 for ipv6. It is actually listening on ipv4 and ipv6. I'm not sure if this is due to the new Firewall or something else.

Start Apache

systemctl start httpd.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment