Installing Redmine is relatively simple on Ubuntu / Debian servers as compared to any other operating system, due to its inclusion into the APT repositories. As before, all terminal commands below are assumed to be executed from the root user via SSH.
Step One: Creating a Virtualmin Subserver
This part is pretty much self-explanatory: create a new subserver named “redmine.example.com” under the server “example.com” from the Virtualmin dashboard.
Step Two: Installing the packages
Through the wonder of apt-get, just follow the prompts given after the command below:
$ apt-get install redmine redmine-mysql libapache2-mod-passenger
Then, activate mod_passenger and mod_rewrite:
$ a2enmod passenger rewrite
Step Three: Configuring Apache
Virtualmin should have created a new virtualhost for you in /etc/apache2/sites-enabled/ named redmine.example.com.conf. Edit it, and replace its contents with something like the following:
<VirtualHost your-ip-here:80> SuexecUserGroup "#1010" "#1010" ServerName redmine.example.com DocumentRoot "/usr/share/redmine/public" PassengerResolveSymlinksInDocumentRoot on Options Indexes ExecCGI FollowSymlinks ErrorLog /var/log/virtualmin/redmine.example.com_error_log CustomLog /var/log/virtualmin/redmine.example.com_access_log combined </VirtualHost>
Step Four: Configure Redmine
edit /etc/redmine/default/configuration.yml and add:
production: email_delivery: delivery_method: :sendmail
note the : in front of sendmail.
Step Five: Reload Apache
$ service apache2 reload
Step Six: Configure Redmine
Navigate to http://redmine.example.com and log in with the default admin / admin credentials. Change these via the “My Account” link, and then go to Administration→Settings and change the hostname from “localhost:3000″ to “redmine.example.com”
At this point, you have a working Redmine install, which you can associate with repositories and begin work on. However, for a more complete system, visit the following tutorials:
Both of these methods can be configured in the same Redmine install, but you will have to resolve conflicts between them as per http://aeturnalus.com/software/hacking-scm-creator-redmine-git-hosting-cooperate/.