{"id":127,"date":"2012-08-16T19:08:50","date_gmt":"2012-08-16T19:08:50","guid":{"rendered":"http:\/\/www.piglets.org\/?p=127"},"modified":"2015-09-04T10:41:55","modified_gmt":"2015-09-04T10:41:55","slug":"migration-from-savane-to-redmine","status":"publish","type":"post","link":"https:\/\/www.piglets.org\/blog\/2012\/08\/16\/migration-from-savane-to-redmine\/","title":{"rendered":"Migration from Savane to Redmine"},"content":{"rendered":"<p>I am admin for a server at work <a href=\"http:\/\/foss.ulster.ac.uk\">foss.ulster.ac.uk<\/a> to host our open source development work. It used to run on GNU Savane, but despite several efforts, that project is clearly dead in the ditch.<\/p>\n<p>So having to change the underlying system, I decided to move to Redmine (you can see some previous discussion <a href=\"http:\/\/www.piglets.org\/serendipity\/archives\/94-Choosing-a-development-hosting-solution.html\">here<\/a>). I'm recording aspects of the migration here mostly for my own sake.<\/p>\n<p>This install was on Debian Squeeze. I first of all installed the relevant package<\/p>\n<pre lang=BASH>\r\naptitude install redmine redmine-pgsql\r\n<\/pre>\n<p>and followed the prompts for the configuration. The documentation for the Debian install is a little unhelpful about how to actually configure the web server, and while I have good experience with Apache, I have very little with Ruby on Rails.<\/p>\n<p>I installed the Apache Passenger module.<\/p>\n<pre lang=BASH>\r\naptitude install libapache2-mod-passenger\r\n<\/pre>\n<p>and copied the example config<\/p>\n<pre lang=BASH>\r\ncd \/usr\/share\/doc\/redmine\/examples\/\r\ncp apache2-passenger-alias.conf \/etc\/apache2\/sites-available\/redmine\r\n<\/pre>\n<p>I then edited the newly created redmine file to look like this:<\/p>\n<pre lang=Apache>\r\n# These modules must be enabled : passenger\r\n# Configuration for http:\/\/foss.ulster.ac.uk\/redmine\r\n\r\nServerName foss.ulster.ac.uk\r\n# this is the passenger config\r\nRailsEnv production\r\nSetEnv X_DEBIAN_SITEID \"default\"\r\n\r\n#\r\n# This is the example from the Debian package\r\n#\r\n#SetEnv RAILS_RELATIVE_URL_ROOT \"\/redmine\"\r\n# apache2 serves public files\r\n#DocumentRoot \/usr\/share\/redmine\/public\r\n#Alias \"\/redmine\/plugin_assets\/\" \/var\/cache\/redmine\/default\/plugin_assets\/\r\n#Alias \"\/redmine\" \/usr\/share\/redmine\/public\r\n\r\n#\r\n# And my attempt (CT 20120816)\r\n#\r\nSetEnv RAILS_RELATIVE_URL_ROOT \"\/redmine\"\r\n# apache2 serves public files\r\nDocumentRoot \/usr\/share\/redmine\/public\r\nAlias \"\/plugin_assets\/\" \/var\/cache\/redmine\/default\/plugin_assets\/\r\nAlias \"\/\" \/usr\/share\/redmine\/public\r\n\r\nDirectory \"\/usr\/share\/redmine\/public\"\r\nOrder allow,deny\r\nAllow from all\r\n<\/pre>\n<p>In my case I wanted Redmine on the web root, so you can see the changes I made.<\/p>\n<p>I then disabled the default config and enabled this:<\/p>\n<pre lang=BASH>\r\na2ensite redmine\r\na2dissite default\r\na2dissite default-ssl\r\n<\/pre>\n<p>and restarted Apache<\/p>\n<pre lang=BASH>\r\n\/etc\/init.d\/apache2 restart\r\n<\/pre>\n<p>Now you can login, with the default username and password (admin and admin) and change them and start some configuration.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am admin for a server at work foss.ulster.ac.uk to host our open source development work. It used to run on GNU Savane, but despite several efforts, that project is clearly dead in the ditch. So having to change the underlying system, I decided to move to Redmine (you can see some previous discussion here). [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"vkexunit_cta_each_option":"","footnotes":"","jetpack_publicize_message":"Migration from Savane to Redmine","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[6],"tags":[32,118,42,43],"class_list":["post-127","post","type-post","status-publish","format-standard","hentry","category-7-programming","tag-debian","tag-7-programming","tag-redmine","tag-savane"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_shortlink":"https:\/\/wp.me\/p52I4w-23","_links":{"self":[{"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/posts\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":1,"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":326,"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/posts\/127\/revisions\/326"}],"wp:attachment":[{"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}