Setup Redmine

Redmine is an open source project management system. It’s has lots of features and is used by numerous companies and groups. It’s not very hard to setup but the documentation of this process is lacking in some areas.

This is the way I installed it on Ubuntu 10.04. The guide may contain errors or even security weaknesses and I do not take any responsibility for how this it’s is being used. If you find any problems or if you have any suggestions for how it can be improved please comment and I will update the guide.

Start by installing the packages

sudo apt-get install mysql-server apache2 libapache2-mod-passenger

sudo apt-get install redmine redmine-mysql

Symlink Redmine

sudo ln -s /usr/share/redmine /var/www/redmine

Configure Apache and Passenger

Edit /etc/apache2/sites-available/default

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
PassengerAppRoot /var/www/redmine/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
RailsEnv production
#RailsBaseURI /
RailsBaseURI /redmine
Alias /redmine /var/www/redmine/public
<Directory /var/www/redmine/public>
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
</VirtualHost>

Edit /etc/apache2/mods-available/passenger.conf

<IfModule mod_passenger.c>
PassengerRoot /usr
PassengerRuby /usr/bin/ruby
PassengerDefaultUser www-data
</IfModule>

Restart Apache

sudo /etc/init.d/apache2 restart

Try it

http://[YOURIP]/redmine

This entry was posted in Uncategorized and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s