{"id":16652,"date":"2014-12-28T15:24:47","date_gmt":"2014-12-28T21:24:47","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=16652"},"modified":"2022-12-12T10:32:40","modified_gmt":"2022-12-12T16:32:40","slug":"how-to-install-review-board-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-review-board-on-a-centos-7-vps\/","title":{"rendered":"How to install Review Board on a CentOS 7 VPS"},"content":{"rendered":"
In this tutorial we are going to explain how to install Review Board on a CentOS 7 Linux VPS<\/a><\/strong>.<\/p>\n What is Review Board?<\/strong><\/p>\n It is a code review system that saves you time, money and sanity so you can focus on making better software. It can easily track team’s review requests, it has a great diff viewer, it supports uploading and reviewing of all kinds of files, it has nice commenting system and much more<\/a>.<\/p>\n Requirements?<\/strong><\/p>\n <\/p>\n Before going any further, Review Board supports MySQL\/MariDB version 5.0.31 or newer, PostgreSQL or Sqlite3 as a database server. In our case we are going to use MariaDB which is the default database server in CentOS 7 and it’s a drop-in replacement for MySQL. Let’s install MariaDB using Once installed, add Restart the MariaDB database server and enable it to start on system start-up using:<\/p>\n Optionally, you can run the Review Board can run on Lighttp + fastcgi or Apache + mod_python, Apache + fastcgi, Apache + mod_wsgi. We will be using Apache + mod_wgsi, so let’s install Apache and mod_wsgi on the CentOS VPS system using Restart Apache and add it to automatically start on your system start-up using:<\/p>\n Optionally, configure some extra Apache options, for example, hide its version number, its banner etc\u2026 by adding the following to Test Apache configuration file and restart the webserver for the changes to take effect:<\/p>\n The Review Board in CentOS 7 is provided by the EPEL repository. So, in order to install the package you have to enable EPEL on your Linux VPS<\/a>.<\/p>\n Table of Contents<\/p>\n\n
1. UPDATE SYSTEM<\/b><\/h3>\n
ssh<\/code> to your CentOS VPS, initiate a
screen<\/code> session and upgrade your system using
yum<\/code>:<\/p>\n
## screen -U -S review-board\r\n## yum update<\/pre>\n
2. INSTALL MARIADB (MYSQL)<\/b><\/h3>\n
yum<\/code>:<\/p>\n
## yum install mariadb mariadb-server mysql<\/pre>\n
bind-address = 127.0.0.1<\/code> to
\/etc\/my.cnf.d\/server.cnf<\/code> to bind MariaDB to localhost only:<\/p>\n
## vim \/etc\/my.cnf.d\/server.cnf\r\n\r\n[mysqld]\r\n#log-bin=mysql-bin\r\n#binlog_format=mixed\r\nbind-address = 127.0.0.1<\/pre>\n
## systemctl restart mariadb\r\n## systemctl status mariadb\r\n## systemctl enable mariadb<\/pre>\n
mysql_secure_installation<\/code> post-installation script to finish the MariaDB set-up.<\/p>\n
## mysql_secure_installation\r\n\r\nEnter current password for root (enter for none): ENTER\r\nSet root password? [Y\/n] Y\r\nRemove anonymous users? [Y\/n] Y\r\nDisallow root login remotely? [Y\/n] Y\r\nRemove test database and access to it? [Y\/n] Y\r\nReload privilege tables now? [Y\/n] Y<\/pre>\n
3. INSTALL APACHE<\/b><\/h3>\n
yum<\/code><\/p>\n
## yum install httpd openssl mod_ssl mod_wsgi<\/pre>\n
## systemctl restart httpd\r\n## systemctl status httpd\r\n## systemctl enable httpd<\/pre>\n
\/etc\/httpd\/conf.d\/options.conf<\/code><\/p>\n
## vim \/etc\/httpd\/conf.d\/options.conf\r\n\r\nTraceEnable off\r\n\r\n## Disable Signature\r\nServerSignature Off\r\n\r\n## Disable Banner\r\nServerTokens Prod<\/pre>\n
## apachectl configtest\r\n## systemctl restart httpd\r\n## systemctl status httpd<\/pre>\n
SETUP REVIEW BOARD<\/b><\/h3>\n