# Requirements # A server running Ubuntu 16.04. # A normal user with sudo privileges setup on your server. # Update the System sudo apt-get update -y sudo apt-get upgrade -y # Install Apache Web Server sudo apt-get install apache2 libapache2-mod-wsgi -y sudo systemctl start apache2 sudo systemctl enable apache2 # Install
required Dependencies sudo apt-get install python-setuptools python-dev memcached python-
MysqLdb patch libjpeg-dev -y sudo easy_install pip sudo apt-get install cvs git-core subversion python-svn -y # Install Review Board sudo apt-get install python-cffi build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 zlib1g-dev libxml2-dev libxslt1-dev libssl-dev -y sudo pip install ReviewBoard # Install and Configure
MysqL sudo apt-get install
MysqL-server -y sudo vi /etc/
MysqL/my.cnf [client] default-character-set=utf8 [
MysqLd] character-set-server=utf8 # Start
MysqL and enable it to automatically start at boot time using following commands. sudo systemctl start
MysqL sudo systemctl enable
MysqL # Next,you will also need to secure your
MysqL installation. You can do this by running sudo
MysqL_secure_installation # Once
MysqL is secured,log in to the
MysqL shell and create a database for Review Board:
MysqL -u root -p # Enter your root password when prompt,then create a database for Review Board. It is recommended to set secure password: CREATE DATABASE reviewboard; # Next,create a username and password for Review Board with the following command: CREATE USER 'reviewboard'@'localhost' IDENTIFIED BY 'password'; # Next,grant privileges to the Review Board database with the following command: GRANT ALL PRIVILEGES ON reviewboard.* TO 'reviewboard'@'localhost'; # Next,you will need to run the FLUSH PRIVILEGES command so that the privileges table will be reloaded by
MysqL and we can use new credential: FLUSH PRIVILEGES; # Next,exit from the
MysqL console with the following command: \q; # Once you are done,you can proceed to the next step. # Configure Review Board Site sudo rb-site install /var/www/reviewboard # Once you are done,change the ownership of the Review Board folder to the Apache user with hte following command: sudo chown -R www-data:www-data /var/www/reviewboard # Next,create a virtual host file for Review Board with the following command: sudo cp /var/www/reviewboard/conf/apache-wsgi.conf /etc/apache2/sites-available/reviewboard.conf # Next,enable the virtual host with the following command: sudo a2dissite 000-default.conf sudo a2ensite reviewboard.conf sudo service apache2 reload # Finally,restart Memcached and Apache services and enable Memcached service to start at boot with the following command: sudo systemctl restart memcached sudo systemctl enable memcached sudo systemctl restart apache2
原文链接:https://www.f2er.com/ubuntu/351420.html