• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How To Install Redmine on Ubuntu 16.04 (Project Management and Issue Tracking Tool)

By Abhishek Ghosh March 19, 2018 9:02 am Updated on April 25, 2018

How To Install Redmine on Ubuntu 16.04 (Project Management and Issue Tracking Tool)

Advertisement

Redmine is Open Source Project Management and Issue Tracking Tool. Redmine allows the users to manage multiple projects and associated subprojects, has project wikis, forums, time tracking, role-based access control, calendar, integrates various version control systems , RESTful API and a repository browser and diff viewer. Here is How To Install Redmine on Ubuntu 16.04 Blank Server From SSH. Redmine is written using the Ruby on Rails framework.

There are other ways of installing Redmine developed by various known webhosts which actually avoid our described steps, like DigitalOcean :

install-redmine-ubuntu-16-04
 

 

How To Install Redmine on Ubuntu 16.04 : Commands

 

SSH to server instance as user with root privilege. First update and upgrade :

Advertisement

---

Vim
1
apt update -y && apt upgrade -y

Then run the below command to install all the needed components, including mysql-server :

Vim
1
apt install curl subversion libmysqlclient-dev libmagickcore-dev libmagickwand-dev imagemagick g++ zlib1g-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgmp-dev libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev libgmp-dev libreadline6-dev libssl-dev mysql-server

Afer the above installation is complete, run the following command to secure MySQL installation:

Vim
1
mysql_secure_installation

Then, create a database for our Redmine installation:

Vim
1
2
3
4
5
mysql -uroot -p
MariaDB [(none)]> CREATE DATABASE redmine CHARACTER SET utf8;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost' IDENTIFIED BY 'redmine_password';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> q

In the above set of commands, change redmine and redmine_password to your own. Now, we need to create a system user for Redmine and assign to sudoers :

Vim
1
2
sudo adduser --home /opt/redmine --shell /bin/bash --gecos 'Redmine application' redmine
usermod -aG sudo redmine

Become that Redmine user :

Vim
1
sudo su - redmine

Now, install Ruby and RVM :

Vim
1
2
3
4
5
6
7
8
9
cd ~
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
curl -sSL https://get.rvm.io | bash -s stable --ruby
To start using RVM run the following commands:
source ~/.rvm/scripts/rvm
rvm --default use ruby
To verify everything is done correctly, use the command ruby --version.
The output should be similar to the following:
ruby --version

From the above commands, we are $HOME or ~. We will checkout the Redmine source code to the $HOME/redmine directory :

Vim
1
2
svn co http://svn.redmine.org/redmine/branches/3.4-stable redmine
mkdir -p ./redmine/tmp/pids ./redmine/public/plugin_assets

We will configure the settings as next step :

Vim
1
2
3
cp ./redmine/config/configuration.yml.example ./redmine/config/configuration.yml
cp ./redmine/config/database.yml.example ./redmine/config/database.yml
nano ./redmine/config/database.yml

Change username/password in the above database.yml file like this :

Vim
1
2
3
4
5
6
7
production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: "redmine_password"
  encoding: utf8

Next install Gems :

Vim
1
2
3
4
5
cd /opt/redmine/redmine
echo "gem 'puma'" >> Gemfile.local
echo "gem: --no-ri --no-rdoc" >> ~/.gemrc
gem install bundler
bundle install --without development test postgresql SQLite

Next prepare the database and Puma :

Vim
1
2
3
4
rake generate_secret_token
RAILS_ENV=production rake db:migrate
RAILS_ENV=production REDMINE_LANG=en rake redmine:load_default_data
nano ~/redmine/config/puma.rb

Below is sample puma.rb :

Vim
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env puma
 
application_path = '/opt/redmine/redmine'
directory application_path
environment 'production'
daemonize true
pidfile "#{application_path}/tmp/pids/puma.pid"
state_path "#{application_path}/tmp/pids/puma.state"
stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
bind "tcp://0.0.0.0:9000"

Now, start Puma :

Vim
1
cd /opt/redmine/redmine/ && bundle exec puma --config config/puma.rb

We will have Redmine installation at http://Your_IP_ADDRESS:9000 on browser.

Tagged With https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1833 rE52UN8ZsguW0j9IDSQHdyil-oHeya4-0bxpbQou8zX6DIJrai-LlhE2NnmKkc49 42cd1556bda8e51fb00f114d60e6e429f032715f&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , redmine ubuntu 16 04 , redmine ubuntu size
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How To Install Redmine on Ubuntu 16.04 (Project Management and Issue Tracking Tool)

  • Install RVM on Rackspace Cloud Server (Ubuntu, PVHVM)

    Here is a step by step guide for the beginners on how to install RVM on Rackspace Cloud Server running Ubuntu 14.04, PVHVM version for Rails.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Join/Merge Multiple Log Files For Big Data Analysis

    Here Are The Ways To Join/Merge Multiple Log Files For Big Data Analysis, Store Them To OpenStack Based Cloud Storage And Delete Old Files.

  • Ansible Ubuntu 16.04 1 Click Install WordPress, Nginx Playbook Tutorial

    Following This Tutorial, You Will Be Able to Create Own Ansible 1 Click Install WordPress Nginx Percona MySQL Playbook For Ubuntu 16.04.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy