Bryan Seeds

21Oct/100

Redmine 0.9.3.stable + SQLite 3.6.22 + Ubuntu 10.04 + Lighttpd 1.4.26

Well as the title states, this is just going over how I ended up configuring everything to get Redmine functioning in an Ubuntu 10.04 Lucid Lynx environment.

1. "sudo apt-get install lighttpd"
2. "sudo apt-get install redmine-sqlite"
3. "sudo ln -s /usr/share/redmine/public /var/www/redmine"
4. "sudo lighty-enable-mod fastcgi simple-vhost"
5. "sudo vi(m) /etc/lighttpd/lighttpd.conf"
6. Uncomment "mod_rewrite" from server.modules = ()
7. Check doc root is where you want it
8. Check that binded port number is correct
9. Check server.username and server.groupname for how you want this process to run
10. Create a virtual host in the lighttpd.conf for redmine similar to below :

$HTTP["host"] == "redmine.example.com" {
        server.document-root = "/var/www/redmine"
        server.follow-symlink = "enable"
        alias.url = ()
        server.indexfiles = ( "dispatch.fcgi" )
        server.error-handler-404 = "/dispatch.fcgi"
        url.rewrite-once = (
                "^/(.*\..+(?!html))$" => "$0",
                "^/(.*)\.(.*)"        => "$0",
        )
 
        fastcgi.server = (
                ".fcgi" => (
                        "redmine" => (
                                "bin-path" => "/usr/bin/ruby /var/www/redmine/dispatch.fcgi",
                                "socket" => "/tmp/redmine.socket",
                                "min-procs" => 1,
                                "max-procs" => 4,
                                "idle-timeout" => 120,
                                "check-local" => "disable",
                                "bind-environment" => (
                                        "RAILS_ENV" => "production"
                                )
                        )
                )
        )
}

11. invoke command ":wq" in vi(m) to write the altered lighttpd.conf changes to disk and quit back to shell.
12. "sudo vi(m) /etc/lighttpd/conf-enabled/10-simple-vhost.conf"
13. check simple-vhost.server-root setting to your web server root and other defaults
14. invoke command ":wq" in vi(m) to write the altered 10-simple-vhost.conf changes to disk and quit back to shell.
15. "sudo vi(m) /usr/share/redmine/config/environment.rb"
16. search for "config.action_mailer.perform_deliveries"
17. add this config if you want SMTP email notifications to work :

config.action_mailer.perform_deliveries = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
      :address => "smtp.example.com",
      :port => 25,
      :domain => 'mail.example.com',
      :authentication => 'none' }
config.action_mailer.raise_delivery_errors = true

18. create a symlink to the sqlite3 database location somewhere for easier access
19. "sudo ln -s /var/lib/dbconfig-common/sqlite3/redmine/instances/default /home/user/_data/redmine-db"

Will update as I remember more =)

29Aug/090

Slackware 13.0 Released!

This morning I found out Slackware 13.0 was released! Woohoo! I currently use 12.2 and have been an avid slacker since version 7.0 way back in `99.  Wow a decade has passed since then, and my OS offers 64-bit now! Makes me really excited and also makes me feel old. =)

So I will be put some more posts up on this, especially my experiences with it when I take it for a test run, until next time ...

Filed under: Linux No Comments