Installed at /home/members/ocutech/sites/

Requires a custom vhost config that is blown away by red if touched from the web interface. The intended vhost config (for is as follows:

# This file was created by Red. Best not to modify
# by hand unless you know what you're doing--- going for it!
<VirtualHost *:80>
        # web config for
        # FcgidInitialEnv for module mod_fcgid
        FcgidInitialEnv RAILS_RELATIVE_URL_ROOT ""
        FcgidInitialEnv X_DEBIAN_SITEID "default"
        FcgidMaxRequestLen 20971520

        Alias "/plugin_assets/" /var/cache/redmine/default/plugin_assets/
        DocumentRoot /home/members/ocutech/sites/
        <Directory "/home/members/ocutech/sites/">
                Options +FollowSymLinks +ExecCGI
                Order allow,deny
                Allow from all
                RewriteEngine On
                # just want to work; force redirect
                RewriteCond %{HTTP_HOST} ^projects\.occupytechnology\.org
                RewriteRule (.*)$1 [R=301,L]

                RewriteRule ^$ index.html [QSA]
                RewriteRule ^([^.]+)$ $1.html [QSA]
                RewriteCond %{REQUEST_FILENAME} !-f [OR]
                RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
                RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

        ErrorLog /home/members/ocutech/sites/

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /home/members/ocutech/sites/ combined
        ScriptAlias /cgi-bin /home/members/ocutech/sites/
        SuexecUserGroup ctprojects ctprojects

Note that it's now being run exclusively at (which is managed elsewhere, and that's unlikely to change), but we're managing the redirect right in the vhost. This is sloppy and it'd be perfectly fine if someone with a better idea were to implement that :)

Installed with:

apt-get install redmine
bundle install --without development test
aptitude install libfcgi-ruby1.9.1


chown -R ctprojects /usr/share/redmine
cp -pr /usr/share/redmine /home/members/ocutech/sites/
chown -R ctprojects /etc/redmine/default/
chown -R ctprojects /var/log/redmine/default/

Also did gem install rack and fcgi, but don't think that did anything.

Last modified 7 years ago Last modified on Mar 2, 2014, 12:38:11 PM