Installation of Redmine on BlueHost¶
This is a guide on how to install Redmine to your BlueHost site.
The guide is mostly written as a reminder to myself on how I did it. If you use this guide and want changes or other features, you could use the forum or google
The version of Redmine used here is the current one as of writing this howto.
Tasks:¶
- Add mysql database Moved to its own wiki page for a visual walk trough :-)
- Add a subdomain Moved to its own wiki page for a visual walk trough :-)
- Download Redmine and configure (this page)
- Redmine confiuration is the last part of this howto. Here we'll link our repository into Redmine
- Create a cronjob to automatically populate your Redmine database with the changesets from Mercurial
For this how to, I use (as you see in the Add mysql database page)
database name: gttoolsc_demo
username: name gttoolsc_demo
password: +?zP5A8a
subdomain: redminedemo (as you see in the Add a subdomain page)
For your own installation you need to change all that is in this format
commands to run directly from the prompt is in this format (of course, after changing the values )
Ok, here is the installation of Redmine on Bluehost
cd
mkdir ~/public_html/redminedemo
cd ~/public_html/redminedemo
wget http://rubyforge.org/frs/download.php/39477/redmine-0.7.3.tar.gz
tar zxvf redmine-0.7.3.tar.gz
rm redmine-0.7.3.tar.gz
mv redmine-0.7.3/* .
rmdir redmine-0.7.3
echo production: > ~/public_html/redminedemo/config/database.yml
echo ' adapter: mysql' >> ~/public_html/redminedemo/config/database.yml
echo ' database: gttoolsc_demo '>> ~/public_html/redminedemo/config/database.yml
echo ' host: localhost' >> ~/public_html/redminedemo/config/database.yml
echo ' username: gttoolsc_demo '>> ~/public_html/redminedemo/config/database.yml
echo ' password: +?zP5A8a '>> ~/public_html/redminedemo/config/database.yml
echo ' encoding: utf8' >> ~/public_html/redminedemo/config/database.yml
mv ~/public_html/redminedemo/public/dispatch.fcgi.example ~/public_html/redminedemo/public/dispatch.fcgi
chmod 700 ~/public_html/redminedemo/public/dispatch.fcgi
chmod 700 ~/public_html/redminedemo/tmp
chmod 700 ~/public_html/redminedemo/log
sed 's|# ENV\[|ENV\[|g' config/environment.rb > TMPFILE && mv TMPFILE config/environment.rb
sed 's|\:domain => "somenet.foo",|\:domain => "yourdomain.com",|g' config/environment.rb > TMPFILE && mv TMPFILE config/environment.rb
sed 's|\:user_name => "redmine@somenet.foo",|\:user_name => "mailuser@yourdomain.com",|g' config/environment.rb > TMPFILE && mv TMPFILE config/environment.rb
sed 's|\:password => "redmine",|\:password => "password for mailuser@yourdomain.com",|g' config/environment.rb > TMPFILE && mv TMPFILE config/environment.rb
rake db:migrate RAILS_ENV="production"
rake redmine:load_default_data RAILS_ENV="production"
Choose your default language when prompted (or press Return to accept English).
Now the Redmine site is operational.¶
You may now login to your site (http://redminedemo.yourdomain.com ):
- login: admin
- password: admin
You should also follow this howto for configuring mercurial for your Redmine