Tuesday, January 27, 2015

[Quick Tips/ Ubuntu]: Install Redmine On Ubuntu Server 13.10

Install Redmine On Ubuntu Server 13.10

Introduction
Redmine is one of most interesting project management web applications, written using Ruby on Rails framwork.
Installation
Install Apache2, MySQL and other dependencies packages:
apt-get install apache2 libapache2-mod-passenger mysql-server mysql-client
Install Redmine
apt-get install redmine redmine-mysql
Configure database for redmine, Select Yes.
1
Select database type. In this example, I use mysql.
2
Provide database administrative password.
3
Provide a password for redmine.
4
Confirm password:
5
Configuration
Create symlink Redmine in web documents path.
ln -s /usr/share/redmine/public /var/www/redmine
Apache2 Configuration
Edit file /etc/apache2/mods-available/passenger.conf,
vi /etc/apache2/mods-available/passenger.conf
with content:
<IfModule mod_passenger.c>
PassengerDefaultUser www-data
PassengerRoot /usr
PassengerRuby /usr/bin/ruby
</IfModule>
Change ownership:
chown -R chown -R www-data:www-data /var/www/redmine
Virtualhost Configuration
Create a virtuahost named “redmine” in /etc/apache2/sites-available/.
vi /etc/apache2/sites-available/redmine
with content:
<VirtualHost *:80>
                 ServerAdmin helpdesk@unixmen.com
                 ServerName redmine.unixmen.com
                 ErrorLog /var/log/error-redmine.log
                 LogLevel warn
                 CustomLog /var/log/access-redmine.log combined
                 DocumentRoot /var/www/redmine
                 <Directory /var/www/redmine>
                                    RailsBaseURI /redmine
                                    PassengerResolveSymlinksInDocumentRoot on
                                    Options Indexes FollowSymLinks MultiViews
                                    AllowOverride all
                                    Order deny,allow
                                    Deny from all
                                    Allow from 192.168.5.0/255.255.255.0 172.16.5.0/255.255.255.0
                 </Directory>
</VirtualHost>
Enable site redmine:
a2ensite redmine
Restart service apache2.
service apache2 restart
Add internal DNS access to redmine via browser:
http://redmine.unixmen.com
Click on Sign in to login.
6
Default username and password:
User Name: admin
Password: admin
7
After login success,
8
Change default setting page.
Go Administration –> Settings.
Change “Redmine” to “Unixmen Project Managemnt” and Save.
9
Go to our homepage by click on Home.
10
Redmine installation is finished, For usage, you can enable redmine feature and find out the available plugins depend on your organization’s needs.

No comments: