This app was introduce by my girlfriend a few days ago. Since she’s using this for her thesis, I’ve got curious and ask what that apps do(aside from knowing that it is a project management). She explained it to me, and wanted me to add my portfolio as a project. And I said, why don’t I install it in my own domain. So I made a sub-domain and installed redmine. I finished the installation  without error. But when I visited my sub-domain, it loads but readmine didn’t load the CSS and sometimes it load but it doesn’t render properly.

So here’s a little guide to make fix the problem.

  1. Login to your SSH account in Dreamhost.
  2. Make a dummy rails application:
    rails dummyApp
  3. Now copy all the dispatch file from your dummyApp/public to your real installed Redmine app in public directory:
    cp dummyApp/public/dispatch.* subdomain.domain.com/public/
  4. Change the permission of your real apps public folder and the copied dispatch files to 755:
    chmod 755 subdomain.domain.com/public
    chmod 755 subdomain.domain.com/public/dispatch.*
  5. And finally copy the generated .htaccess in your dummyApp/public to your real installed Redmine app in public directory:
    cp dummyApp/public/.htaccess subdomain.domain.com/public/
  6. That should be it.

Note: as of Rails 2.1.0 the .htaccess file no longer exists in the default skeleton.