How to install Redmine on Bluehost
Saturday, November 6, 2010 18:22How to install Redmine on BlueHost under a subdomain. Redmine is a popular project management software based on RubyOnRails.
BlueHost is a shared hosting provider but allows you to use SSH access to your account. To enable SSH open a support ticket and send them a scan of your ID.
I will give you rough steps of how to set up everything.
LOGIN TO YOUR ACCOUNT VIA SSH (use putty or other software)
- assuming rails IS installed. check rails –version if not installed you need to install it
- check which local gems installed gem list –local
- rack v.1.0.1 required gem install rack -v=1.0.1
- mysql required gem install mysql
- edit $HOME/.bashrc add lines:
export GEM_HOME=$HOME/ruby/gems
export GEM_PATH=$GEM_HOME:/usr/lib64/ruby/gems/1.8
export GEM_CACHE=$GEM_HOME/cache
export PATH=$PATH:$HOME/ruby/gems/bin
- edit $HOME/ruby/gems/gems/rack-1.0.0/lib/rack/handler/fastcgi.rb comment out line like this:
#alias _rack_read_without_buffer read
- Add MYSQL database to use with Redmine
- Add a subdomain. In this eample i will use subdomain.domain.tld
- follow following steps: # is my comment
mkdir -p ~/railapps/redmine/ #create redmine dir
cd ~/railapps/redmine
wget http://rubyforge.org/frs/download.php/73140/redmine-1.0.3.tar.gz #download redmine
tar -xzf redmine-1.0.3.tar.gz #extract redmine tar.gz
mv redmine-1.0.3/* ./ #move all files
rm -rf redmine-1.0.3 redmin-1.0.3.tar.gz #remove redmine-1.0.3 folder and downloaded tar.gz
# edit database.yml file
vi config/database.yml
# remove comment from production part and populate database details
# -----
mv public/dispatch.fcgi.example public/dispatch.fcgi
chmod 0755 public/dispatch.fcgi tmp/ log/ files/
# edit environment.rb file
vi config/environment.rb
# make sure its set to production
# add line: ENV['GEM_PATH'] = '/path/to/their/home/ruby/gems:/usr/lib/ruby/gems/1.8'
# -----
# initialize session storaga
RAILS_ENV=production rake config/initializers/session_store.rb
rake db:migrate RAILS_ENV="production"
rake redmine:load_default_data RAILS_ENV="production" # load database
## Link Subdomain to RedMine installation
cd ~/public_html
rmdir subdomain #remove subdomain directory
ln -s /home/myusername/railapps/redmine/public/ subdomain # make a symbolic link to the redmine app. replace myusername and subdomain with your data
- RedMine should be operational now. Login via http://subdomain.mydomain.tld u:admin p:admin
Cheers