How To Install Redmine on Ubuntu 12.10

Redmine is a project management software that you can install on your cloud server. It can be used to track bugs, collaborate on features, and track progress of any project.


We begin by spinning up a Ubuntu 12.10 x64 cloud server.

Next, we will need to install Apache, MySQL, mod_passenger, and Ruby.

export DEBIAN_FRONTEND=noninteractive
apt-get install -y apache2 mysql-server mysql-client libapache2-mod-passenger software-properties-common librmagick-ruby ruby-rmagick redmine redmine-mysql
gem install bundler mysql2

This will install Redmine in /usr/share/redmine so we will want to create a symbolic link to Apache’s default DocumentRoot (/var/www):

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

Now we need to configure Apache with mod_passenger and tell it to follow symlinks:

sed -i '/mod_passenger.c/aPassengerDefaultUser www-data' /etc/apache2/mods-available/passenger.conf
sed -i '//a\\tRailsBaseURI \/public\n\tPassengerResolveSymlinksInDocumentRoot on' /etc/apache2/sites-available/default

Your Apache configuration files should look like this:

Restart Apache for settings to take effect:

service apache2 restart

Now you can navigate to your cloud server’s IP address /public folder and login ( in our case):

Login: admin
Password: admin

Make sure you change your password by navigating to /public/my/password ( in our case).

And you are all done!

(Originated from