Installing Redmine 2.4.0

Installing the required libraries

[[email protected]]# yum install make gcc gcc-c++ zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel
[[email protected]]# yum install zlib zlib-devel openssl-devel sqlite-devel gcc-c++ glibc-headers libyaml-devel readline readline-devel zlib-devel libffi-devel

Downloading the Ruby source

[[email protected]]# cd ~
[[email protected]]# wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.gz

Unpack

[[email protected]]# tar zxvf ruby-2.1.5.tar.gz

Compiling and installing

[[email protected]]# cd ruby-2.1.5
[[email protected]]# ./configure
[[email protected]]# make
[[email protected]]# make install

See version

[[email protected]]# ruby -v

Install passenger:

[[email protected]]# gem install passenger
[[email protected]]# passenger-install-apache2-module

Create a configuration file

[[email protected]]# nano /etc/httpd/conf.d/passenger.conf

LoadModule passenger_module /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.4/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
   PassengerRoot /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.4
   PassengerDefaultRuby /usr/local/bin/ruby
</IfModule>

Restart Apache

[[email protected]]# service httpd restart

Host settings for Apache:

<VirtualHost *:80>
ServerName www.yourhost.com
# !!! Be sure to point DocumentRoot to 'public'!
DocumentRoot /somewhere/public 
<Directory /somewhere/public>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
# Uncomment this if you're on Apache >= 2.4:
#Require all granted
</Directory>
</VirtualHost>

Downloading Redmine

[[email protected]]# cd ~
[[email protected]]# wget http://www.redmine.org/releases/redmine-2.4.0.tar.gz

Unpack

[[email protected]]# tar zxvf redmine-2.4.0.tar.gz

Transfer the unpacked files to / var / www / html / redmine

[[email protected]]# mv redmine-2.4.0/* /var/www/redmine

We put

[[email protected]]# gem install bundle

Change directory owner

[[email protected]]# chown -R apache:apache /var/www/html/redmine

Installing libraries

[[email protected]]# yum install ImageMagick-devel
[[email protected]]# gem install rmagick -v '2.13.2'

Install redmine

[[email protected]]# cd /var/www/redmine
[[email protected]]# bundle install --without postgresql sqlite test development

Setting up connection to the base

[[email protected]]# mysql -u root -p
mysql> create database redmine character set utf8;
mysqk> grant all privileges on redmine.* to 'redmine'@'localhost' identified by 'redmine';
mysql> flush privileges;
mysql> quit;

Configuring redmine to connect to the database

[[email protected]]# cd /var/www/html/redmine/config
[[email protected]]# cp database.yml.example database.yml

Open database.yml and write the login / password from the database

[[email protected]]# nano database.yml

go to the directory and install

[[email protected]]# cd /var/www/html/redmine
[[email protected]]# bundle install
[[email protected]]# rake generate_secret_token

Initial filling of the base

[[email protected]]# rake db:migrate RAILS_ENV="production"
[[email protected]]# rake redmine:load_default_data RAILS_ENV="production"

Installing plugins

[[email protected]]# cd /var/www/html/redmine/plugins

# redmine_multiprojects_issue

[[email protected]]# wget https://github.com/nanego/redmine_multiprojects_issue/archive/master.zip
[[email protected]]# unzip masters.zip
[[email protected]]# bundle install
[[email protected]]# rake redmine:plugins:migrate RAILS_ENV=production
[[email protected]]# rm master.zip

# redmine_base_select2

[[email protected]]# wget https://github.com/jbbarth/redmine_base_select2/archive/master.zip
[[email protected]]# unzip masters.zip
[[email protected]]# bundle install
[[email protected]]# rake redmine:plugins:migrate RAILS_ENV=production
[[email protected]]# rm master.zip

# redmine_base_deface

[[email protected]]# wget https://github.com/jbbarth/redmine_base_deface/archive/master.zip
[[email protected]]# unzip masters.zip
[[email protected]]# bundle install
[[email protected]]# rake redmine:plugins:migrate RAILS_ENV=production
[[email protected]]# rm master.zip

Restart Apache

[[email protected]]# service httpd restart
Sidebar