After reading this guide you should have a working redmine instance. If this is not the case or if a step fails, please post details on the forums and refer to this wiki page. Make sure to include the output of gem env and / or RAILS_ENV=production /opt/redmine/script/about. If this guide has issues, please contact me or correct it yourself.
This is a step-by-step guide to install redmine on "Debian stable" (called Wheezy at the moment of writing). It is written for people who are familiar with Debian, the shell, MySQL, Apache and Linux in general. To keep this guide short, it does not explain every step in detail.
The versions, filenames and paths in this document are subject to frequent change. I'll do my best to keep them up-to-date, but please check anyway.
Please note: I'm assuming that you know how to use the tools at hand. If that's not the case (eg. you don't know how to create a new database or you don't know how to restart apache) please use the search engine of your choice and come back afterwards.
Chapter 1: Install ruby, rails, gems and passenger¶
cd ~
wget -c ftp://ftp.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.gz
tar xvfz ruby-2.3.1.tar.gz
cd ruby-2.3.1
./configure --enable-pthread --prefix=/usr/local
read and check the output carefully :)
add if needed missed packages
make
su
checkinstall --type=debian --install=yes --fstrans=no --pakdir='~'
Ruby 1.9 comes with RubyGems by default, so by now gem should be installed. If correctly installed, the following command will output a version number like 1.8.2x:
Note: Installing libmagickwand-dev installs a lot of packages (depends / recommends) Note: If you have bundle install error then you may try to purge, then install *-dev packages
create database redmine character set utf8;
create user 'redmine'@'localhost' identified by 'XXX';
grant all privileges on redmine.* to 'redmine'@'localhost';
Put this in /etc/apache2/sites-available/redmine Note: The option RackBaseURI is for rails 3, in rails 2 it was called RailsBaseURI. It is in no case called RakeBaseURI.
<Location /redmine>
RailsEnv production
RackBaseURI /redmine
Options -MultiViews
</Location>
If you see something unexpected, please post details on the forums and refer to this wiki page. Make sure to include the output of gem env and / or RAILS_ENV=production /opt/redmine/script/about.