This is my way to upgrade Redmine 1.3 to Redmine 2.5 .For the past 2 week , i has been tried to seek the best way to upgrade my Redmine 1.3 without upgrading my Ubuntu OS.
I'm NOT Redmine atau Ubuntu JEDI ... hehehehe , So please forgive me for any mistakes that made by my own. Hopefully with a feedback, i can make the installation notes more better and clearer.
Lets Start:
Get into existing Redmine folder and move to backup folder.
Now we’re going to download the latest version of Redmine from RubyForge: http://www.redmine.org/projects/redmine/wiki/Download. When i do this, the release is redmine-2.5.2.tar.gz. We need to extract and rename it to redmine folder and give correct permission. Make sure that a particular file is set to www-data as owner. This is because Passenger runs as the user that owns this file
Update a symbolic link from the main website home back to our actual Redmine application directory.
Now we need to configure DB and make sure existing DB name is same in the new config files:
Before proceed redmine need to install ruby1.1.9-full and add all required libraries.
I preferred to use RMagick to enable Gantt export to png image.
We need to install bundle. Bundle is using to install Ruby Gems that needed by Redmine.
Change to redmine folder and run to install Gems
Configure Redmine:
There are question before the script finish configure, we need to choose our languange.
Type the code accordingly to your country or preferable languange.
Some directory,we need to configure correct directory permissions:
Now we can test Redmine:
Enter your webaddress:http://ipaddress:3000 you should see the new version Redmine homepage.
Now configure Passenger to make sure it launches when Apache runs.
I'm NOT Redmine atau Ubuntu JEDI ... hehehehe , So please forgive me for any mistakes that made by my own. Hopefully with a feedback, i can make the installation notes more better and clearer.
Preliminary :
Check version Ubuntu
Check which ruby:
/usr/bin/ruby
Change to ruby1.9
There are 2 choices for the alternative ruby (providing /usr/bin/ruby).
Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/bin/ruby1.9.1 to provide /usr/bin/ruby (ruby) in manual mode.
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
lrwxrwxrwx 1 root root 18 2011-12-30 17:35 /etc/alternatives/ruby -> /usr/bin/ruby1.9.1
We need to configure Gems also:
There are 2 choices for the alternative gem (providing /usr/bin/gem).
Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/bin/gem1.9.1 to provide /usr/bin/gem (gem) in manual mode.
Install & Configure Passenger:
Before we can install the Passenger module, we need some additional software:
Now we are set to install the Passenger module for Apache:
Passenger will run & compile the source code into the module for Apache.
When compilation almost finish you need to copy some configuration from the running scripts:
Backup old loader
Now use nano or your favourite editor to create the loader:
Then make the module enabled:
Backup Old Virtual
Configure Passenger in Virtual Hosts
Edit a configuration file for Passenger
Reconfigure Virtual Hosts
Tell Apache how to configure Passenger:
Add the following line at the end of the file:
Finally, enable the site:
Make sure the Passenger module is enabled:
And, restart Apache:
If everything went well, then you should be able to see Redmine in your browser:
When compilation almost finish you need to copy some configuration from the running scripts:
No comments:
Post a Comment