Redmine on Dreamhost
May 12th, 2008As of May 13, 2008 Dreamhost provides a feature called Passenger for Ruby on Rails. This make is significantly easier to install Ruby On Rails Apps on Dreamhost!!! Use this method instead (Click Here)
http://alandaveline.com/blog/2008/05/16/redmine-on-dreamhost-with-passenger/
The following is how I install Redmine on Dreamhost
- From the Dreamhost control panel, create a new subdomain for the application such as yoursubdomain.yourdomain.com
- Make sure the domain supports “FastCGI”
- Specify your web directory: /home/username/yoursubdomain.yourdomain.com/public
- you must add the public!!!
- From the Dreamhost control panel create a new MySQL database named yourdatabasename
- ssh into your Dreamhost account
cd ~/yoursubdomain.yourdomain.comsvn export --force svn://rubyforge.org/var/svn/redmine/branches/0.7-stable ./- check http://www.redmine.org/wiki/redmine/Download for the latest version
- also watch out for permissions
chmod -v -R 755 *
cd ~/yoursubdomain.yourdomain.com/configcp database.yml.example database.ymlnano database.yml- edit the database.yml config file with the appropriate info. Should be similar to the following
production:
adapter: mysql
database: yourdatabasename
username: yourusername
password: yourpassword
host: mysql.yourdomain.com
- edit the database.yml config file with the appropriate info. Should be similar to the following
cd ~/yoursubdomain.yourdomain.com/publiccp dispatch.fcgi.example dispatch.fcgicp dispatch.rb.example dispatch.rbnano .htaccess- change line with
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
- to
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
- change line with
cd ~/yoursubdomain.yourdomain.com- from application root type
rake db:migrate RAILS_ENV="production"
- also type the following to load config defaults
rake redmine:load_default_data RAILS_ENV="production"
- choose “en” for english
- browse to http://yoursubdomain.yourdomain.com
Reference
http://www.redmine.org/wiki/redmine/RedmineInstall
www.jorgeivanmeza.com
http://www.redmine.org/boards/2/topics/show/69

May 15th, 2008 at 3:25 am
I’ve successfully run through your guide (thanks!). I have, however, encountered an odd problem with the finished redmine installation. When I look at it in my browser, it’s as if I had turned styles off in firefox. I see everything as if it were flat html. Is there anything I may have done wrong that would deny redmine its styles/css/images?
Cheers, and thanks for the guide.
May 16th, 2008 at 12:11 am
Try replacing the contents of your ./public/.htaccess file with this
AddHandler fastcgi-script .fcgiOptions +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
ErrorDocument 500 “<h2>Application error</h2>Rails application failed to start properly”
May 16th, 2008 at 12:14 am
Additionally, as of May 13, 2008 Dreamhost provides a feature called Passenger for Ruby on Rails. This make is significantly easier to install Ruby On Rails Apps on Dreamhost!!! Use this method instead. Click Here