Tuesday, May 15, 2012

Installing Redmine on Ubuntu 11.10

First let's update the packages list and upgrade (optional). 

sudo apt-get update
sudo apt-get upgrade

Now we need to install Apache2 Web Server, Mysql (LAMP):

sudo tasksel install lamp-server
sudo apt-get install libapache2-mod-passenger

Installing the latest Redmine (when I wrote this, it was 1.3.2), this will also install ruby on ubuntu:

sudo add-apt-repository ppa:ondrej/redmine
sudo apt-get update
sudo apt-get install redmine redmine-mysql

Installing rmagick:

sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev
sudo gem install rails
sudo gem install rmagick

Let's link redmine folder to apache:

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

We need to tell Passenger to run on "www-data" user:
sudo vim /etc/apache2/mods-available/passenger.conf


PassengerDefaultUser www-data

You'll also need to configure the /var/www/redmine location in /etc/apache2/sites-available/default by adding:
sudo vim /etc/apache2/sites-available/default

<Directory /var/www/redmine>
    RailsBaseURI /redmine
    PassengerResolveSymlinksInDocumentRoot on

Enable passenger:
sudo a2enmod passenger

Restart apache2

sudo service apache2 restart

Know you should be able to access Redmine at: http://server.ip.address/redmine and login as:

user: admin
password: admin

Thank you...


No comments:

Post a Comment