Installing Redmine 2.4.0 on Debian 7

red mine logo

Redmine is a project management tool that includes an incident tracking system with bug tracking. Other tools included are activity calendar, Gantt charts for visual representation of project timeline, wiki, forum, version control repository viewer, RSS, role-based workflow control, integration with email, etc.

Source: Wikipedia

  • Distribution: Debian 7
  • Architecture: 64Bits
  • Apache2
  • PostgreSQL V9.1

Redmine 2.4 installation. (last until this date)


Redmine 2.4 package is downloaded

wget rubyforge.org/frs/download.php/77242/redmine-2.4.0.tar.gz

Unzips

tar xvzf redmine-2.4.0.tar.gz

Now we move

cd redmine-2.4.0
cd doc/

From there the official documentation that the package brings opens. (RTFM !!!)

cat INSTALL

The result of the cat is in the direction - » http://pastebin.com/ecUB93Hk

Ruby version is also checked. In this case:

aptitude show ruby:
Paquete: ruby
Estado: sin instalar
Versión: 1:1.9.3

Optional Packages.

aptitude install ruby libmagickcore-dev libmagickwand-dev

The bundler gem is installed, which will help us to install the project-dependent gems.

redmine-2.4.0# gem install bundler -V

We must create a database in UTF-8, in this case postgresql v9.1 is used with the name: "redmine".

Then all the necessary gems are installed, for them it must be in the redmine directory:

bundle install --without production

It may be a problem when installing the nokogiri gem for this they do:

sudo aptitude install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby ruby1.9.1-dev gem install nokogiri

There may be a problem while installing the mysql2 gem. for this they do:

aptitude install libmysqlclient-dev

There may be a problem when installing the gem pg. for this they do:

aptitude install libpq-dev

In this case there was no other problem with any gem installation.

A session secret store is generated.

rake generate_secret_token

We create the structure of the database

rake db:migrate RAILS_ENV="production"

We execute the necessary permits.
chown -R www-data:www-data files log tmp public
chmod -R 755 files log tmp public/plugin_assets

We tested the redmine installation

ruby script/rails server -e production

In this part we test the redmine:

locahost: 3000

Already working. Now what would be missing is to configure the SMTP Server and change the Webrick server to Apache2. The change is made, since the Webrick server in production consumes a lot of resources.

aptitude install libapache2-mod-passenger

gem install passenger -V

passenger-install-apache2-module2

We edit: /etc/apache2/httpd.conf and add the following lines:

RailsEnv production RailsBaseURI /redmine

We add a VirtualHost in / etc / apache2 / sites-enabled / file

ServerName redmine.dominio.com
DocumentRoot /var/www/dominio.org.ve/redmine/public
ServerAdmin usuario@dominio.com
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all

We enter www.redmine.dominio.com and DONE! Enjoy your redmine.

redmine


Be the first to comment

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.