|
/SW/business/Redmine:
Installing Redmine in a Hostgator Hosting Account
To their credit, Hostgator[1] actually provides some documentation[2] about getting Ruby applications working in their hosting account. I, however, found them to be inadequate, and debugging information availability was little to none, so for me the magic key was getting Redmine working first on my desktop, then migrating to the Hostgator hosting account.
One of the first things one notices when looking at the rather sparse Redmine installation manual[3] is the need for specific versions of a number of Ruby librairies. This is what I found:
| My Debian Desktop | Hostgator Account |
| rails (2.3.5) | rails (2.3.8) |
| rack (1.0.1) | rack (1.1.0) |
| rake (0.8.3) | rake (0.8.7) |
| hoe (1.3.0) | hoe (2.6.0) |
In the Hostgator account, I got the above librairy versions using "gem list --local". I then installed in the account the correct versions as follows:
gem install rails -v=2.3.5
gem install hoe -v=1.3.0
Now transfer Redmine from desktop to Hostgator, placing it in /home/mentage/redmine-0.9.
In /home/mentage/public_html, create the following symlink: redmine -> /home/mentage/redmine-0.9/public/
Hostgator is using Apache to server up Ruby applications. Create a public/.htaccess[2] file with the following contents:
AddHandler fcgid-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/notrails.*
RewriteRule .* - [L]
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
After that, it worked for me by pointing a browser at the redmine directory.
[1] http://www.hostgator.com/
[2] http://forums.hostgator.com/ruby-rails-support-t13038p8.html
[3] http://www.redmine.org/wiki/1/RedmineInstall
posted at: 13:08 | path: /SW/business/Redmine | permanent link to this entry