123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Installing RedMine Project Management Software on Linux</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Home Lab,Home Lab Ideas,Install Guide,Debian,Web Based,Web Based Tools,Linux,MariaDB,MySQL,Self-Hosted,Browser Based,Homelab,Ubuntu,Project Management,Project Management Software,Web Based Project Management,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Installing RedMine Project Management Software on Linux">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="10/28/2023 01:46:22 PM" />
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Installing RedMine Project Management Software on Linux</h1>
- </div>
- <div></div>
- <div id="content">
- <ol>
- <li>Log into the Debian device</li>
- <li>Run the following commands in a terminal:
- <div class="codeBlock"># update repositories<br />
- sudo apt update<br />
- # install available software updates<br />
- sudo apt upgrade<br />
- # install Apache2, Ruby, MySQL/MariaDB and redmine dependencies<br />
- sudo apt install ruby-dev apache2 libapache2-mod-passenger mariadb-server build-essential libxslt1-dev libmariadb-dev libxml2-dev zlib1g-dev imagemagick libmagickwand-dev curl<br />
- # configure the MySQL database<br />
- sudo su<br />
- mysql_secure_installation</div>
- </li>
- <li>Press Enter to login as root</li>
- <li>Type Y and press Enter to set a root password, type the password twice to confirm</li>
- <li>Type Y and press Enter to remove anonymous users</li>
- <li>Type Y and press Enter to disallow root login remotely</li>
- <li>Type Y and press Enter to remove the test database</li>
- <li>Type Y and press Enter to reload privilege tables</li>
- <li>Run the following command to login into MySQL:
- <div class="codeBlock">mysql -u root -p</div>
- </li>
- <li>Authenticate with the root password set earlier</li>
- <li>Run the following commands to create the Redmine database and database user
- <div class="codeBlock">CREATE DATABASE redmine CHARACTER SET utf8mb4;<br />
- GRANT ALL ON redmine.* to 'redmine'@'localhost' IDENTIFIED BY 'R3dM1n3!!';<br />
- FLUSH PRIVILEGES;<br />
- EXIT;<br />
- exit</div>
- </li>
- <li>Continue with the following commands to download and extract Redmine
- <div class="codeBlock"># create redmine user<br />
- sudo useradd -r -m -d /opt/redmine -s /usr/bin/bash redmine<br />
- # add redmine user to www-data group<br />
- sudo usermod -aG redmine www-data<br />
- # download latest redmine version<br />
- sudo wget -O redmine.tar.gz https://www.redmine.org/releases/redmine-4.1.2.tar.gz<br />
- # extract redmine.tar.gz<br />
- sudo -u redmine tar xzf redmine.tar.gz -C /opt/redmine/ --strip-components=1<br />
- # authenticate as the redmine user<br />
- sudo su - redmine<br />
- # create copies of example configuration files<br />
- cp /opt/redmine/config/configuration.yml{.example,}<br />
- cp /opt/redmine/public/dispatch.fcgi{.example,}<br />
- cp /opt/redmine/config/database.yml{.example,}<br />
- # edit database.yml<br />
- nano /opt/redmine/config/database.yml</div>
- </li>
- <li>Update the following values in database.yml
- <p>production:<br />
- adapter: mysql2<br />
- database: redmine<br />
- host: localhost<br />
- username: redmine<br />
- password: "R3dM1n3!!"</p>
- </li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes to database.yml</li>
- <li>Continue with the following commands
- <div class="codeBlock"># exit redmine login<br />
- exit<br />
- # cd to /opt/redmine<br />
- cd /opt/redmine<br />
- # install bundler<br />
- sudo gem install bundler<br />
- # authenticate as the redmine user<br />
- sudo su - redmine<br />
- # install dependencies<br />
- bundle install --without development test --path vendor/bundle<br />
- # generate store secret<br />
- bundle exec rake generate_secret_token<br />
- # create database objects<br />
- RAILS_ENV=production bundle exec rake db:migrate<br />
- # insert database data<br />
- RAILS_ENV=production REDMINE_LANG=en bundle exec rake redmine:load_default_data<br />
- # reset permissions<br />
- chmod -R 755 /opt/redmine<br />
- # exit redmine login<br />
- exit<br />
- # cd to /opt/redmine<br />
- cd /opt/redmine<br />
- # start the redmine server<br />
- sudo bundle exec rails server webrick -e production<br />
- # create redmine apache2 conf<br />
- sudo nano /etc/apache2/sites-available/redmine.conf</div>
- </li>
- <li>Paste the following configuration into redmine.conf
- <p>Listen 3000<br />
- <VirtualHost *:3000><br />
- ServerName redmine.kifarunix-demo.com<br />
- RailsEnv production<br />
- DocumentRoot /opt/redmine/public</p>
- <p><Directory "/opt/redmine/public"><br />
- Allow from all<br />
- Require all granted<br />
- </Directory></p>
- <p>ErrorLog ${APACHE_LOG_DIR}/redmine_error.log<br />
- CustomLog ${APACHE_LOG_DIR}/redmine_access.log combined<br />
- </VirtualHost></p>
- </li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes to redmine.conf</li>
- <li>Continue with the following commands to enable the site and restart Apache:
- <div class="codeBlock"># enable the required Apache modules<br />
- sudo a2enmod passenger<br />
- # enable redmine site<br />
- sudo a2ensite redmine<br />
- # restart apache2 service for the changes to take effect<br />
- sudo systemctl restart apache2</div>
- </li>
- <li>Open a web browser and navigate to http://DNSorIP:3000</li>
- <li>Log in with the username admin and password admin</li>
- <li>Enter the password admin and set and confirm a new password for the admin user</li>
- <li>Welcome to Redmine</li>
- </ol>
- <p>Source: <a href="https://www.redmine.org/projects/redmine/wiki/RedmineInstall" target="_blank">https://www.redmine.org/projects/redmine/wiki/RedmineInstall</a></p> </div>
- </div>
- </body>
- </html>
-
|