Redmine on Dreamhost

May 12th, 2008

Dreamhost Logo

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)

http://alandaveline.com/blog/2008/05/16/redmine-on-dreamhost-with-passenger/

The following is how I install Redmine on Dreamhost

  1. From the Dreamhost control panel, create a new subdomain for the application such as yoursubdomain.yourdomain.com
    1. Make sure the domain supports “FastCGI”
    2. Specify your web directory: /home/username/yoursubdomain.yourdomain.com/public
      • you must add the public!!!
  2. From the Dreamhost control panel create a new MySQL database named yourdatabasename
  3. ssh into your Dreamhost account
  4. cd ~/yoursubdomain.yourdomain.com
  5. svn export --force svn://rubyforge.org/var/svn/redmine/branches/0.7-stable ./
    • check http://www.redmine.org/wiki/redmine/Download for the latest version
  6. also watch out for permissions
    • chmod -v -R 755 *
  7. cd ~/yoursubdomain.yourdomain.com/config
  8. cp database.yml.example database.yml
  9. nano database.yml
    1. 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
  10. cd ~/yoursubdomain.yourdomain.com/public
  11. cp dispatch.fcgi.example dispatch.fcgi
  12. cp dispatch.rb.example dispatch.rb
  13. nano .htaccess
    1. change line with
      • RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
    2. to
      • RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
  14. cd ~/yoursubdomain.yourdomain.com
  15. from application root type
    • rake db:migrate RAILS_ENV="production"
  16. also type the following to load config defaults
    • rake redmine:load_default_data RAILS_ENV="production"
    • choose “en” for english
  17. 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

3 Responses to “Redmine on Dreamhost”

  1. Chris Pitzer Says:

    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.

  2. daveline Says:

    Try replacing the contents of your ./public/.htaccess file with this

    AddHandler fastcgi-script .fcgi
    Options +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”

  3. daveline Says:

    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

Leave a Reply

Spam protection by WP Captcha-Free