instalasi dan restore redmine

redmine is one of major open source project management information system. this blog post will share how to install (and restore from backup) redmine application on Ubuntu.

install redmine

sudo apt-get install apache2
sudo apt-get install libapache2-mod-passenger
sudo apt-get install redmine redmine-pgsql
sudo a2enmod passenger rewrite

buat symbolic link di document root apache

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

ubah isi file /etc/apache2/mods-available/passenger.conf, tambahkan:

PassengerDefaultUser www-data

ubah isi file /etc/apache2/sites-available/default, tambahkan

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

kemudian restart apache

upgrade redmine ke release terakhir

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/redmine
sudo apt-get update
sudo apt-get install redmine redmine-pgsql

restore ke db existing

restore db menggunakan psql atau pg_restore, kemudian ubah previllage user redmine pada database sehingga menjadi superuser. pada /usr/share/redmine/ jalankan:

sudo rake db:migrate RAILS_ENV=production

jika memiliki plug in, jalankan juga

sudo rake redmine:plugins:migrate RAILS_ENV=production

restore attachment

restore all attachment to /var/lib/redmine/default/files, kemudian change owner and group to www-data.

mengganti port apache2

default port adalah 80, jika ingin mengganti, misalnya menjadi 8020, maka:

  1. ubah file /etc/apache2/sites-available/default cari line <VirtualHost *:80> ganti dengan <VirtualHost *:8020>
  2. ubah file /etc/apache2/ports.conf cari line Listen 80 ganti dengan Listen 8020
  3. ubah file /etc/apache2/ports.conf cari line NameVirtualHost *:80 ganti dengan NameVirtualHost *:8020

hal-hal yang perlu dibackup

  • configuration.yml pada /etc/redmine/default
  • database (redmine_default)
  • attachment pada /var/lib/redmine/default/files

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s