{"id":1416,"date":"2010-11-19T13:01:47","date_gmt":"2010-11-19T06:01:47","guid":{"rendered":"http:\/\/www.jfdesignnet.com\/?p=1416"},"modified":"2010-11-19T13:01:47","modified_gmt":"2010-11-19T06:01:47","slug":"redmine-on-klixs","status":"publish","type":"post","link":"https:\/\/www.jfdesignnet.com\/?p=1416","title":{"rendered":"redmine on klixs"},"content":{"rendered":"<p style=\"text-align: justify;\">Redmine is a powerful and flexible project management web apps written on ruby on rails framework. I&#8217;ve been using trac for years and want to try this redmine for further functionality and exploring possibility. Been lucky to install redmine on my klixs server on the first try, and here is the steps I want to share :<\/p>\n<h2 id=\"Installation\">Installation<\/h2>\n<p>Redmine won&#8217;t run on ruby 1.9.x so I&#8217;m using ruby 1.8.7 and RubyGems 1.3.5 from klixs 2010 packages.<\/p>\n<p>1. Install ruby 1.8.7 and RubyGems from klixs-repository<\/p>\n<p>2. rails and rake gem :<\/p>\n<pre>[root@localhost redcomm]# <strong>gem install rails -v=2.3.5<\/strong>\n<em>Successfully installed activesupport-2.3.5\nSuccessfully installed activerecord-2.3.5\nSuccessfully installed actionpack-2.3.5\nSuccessfully installed actionmailer-2.3.5\nSuccessfully installed activeresource-2.3.5\nSuccessfully installed rails-2.3.5\n6 gems installed\nInstalling ri documentation for activesupport-2.3.5...\nInstalling ri documentation for activerecord-2.3.5...\nInstalling ri documentation for actionpack-2.3.5...\nInstalling ri documentation for actionmailer-2.3.5...\nInstalling ri documentation for activeresource-2.3.5...\nInstalling ri documentation for rails-2.3.5...\nInstalling RDoc documentation for activesupport-2.3.5...\nInstalling RDoc documentation for activerecord-2.3.5...\nInstalling RDoc documentation for actionpack-2.3.5...\nInstalling RDoc documentation for actionmailer-2.3.5...\nInstalling RDoc documentation for activeresource-2.3.5...\nInstalling RDoc documentation for rails-2.3.5...<\/em><\/pre>\n<pre>[root@localhost redcomm]# <strong>gem install rack -v=1.0.1<\/strong>\n<em>Successfully installed rack-1.0.1\n1 gem installed\nInstalling ri documentation for rack-1.0.1...\nInstalling RDoc documentation for rack-1.0.1...<\/em><\/pre>\n<p>3. <a href=\"http:\/\/www.redmine.org\/wiki\/redmine\/Download\">Download<\/a> and extract the archive or <a href=\"http:\/\/www.redmine.org\/wiki\/redmine\/CheckingoutRedmine\">checkout<\/a> Redmine, and extract to some folder.<\/p>\n<p>4. Create an empty database (I&#8217;m using mysql) and accompanying user named <code>redmine<\/code> for example.<\/p>\n<pre>create database redmine character set utf8;\ngrant all privilege on redminedb.* to user@localhost identified by '&lt;password&gt;';\nflush privileges;<\/pre>\n<p style=\"text-align: justify;\">5. Copy <code>config\/database.yml.example<\/code> to <code>config\/database.yml<\/code> and edit this file in order to configure your database settings for &#8220;production&#8221; environment.<\/p>\n<p style=\"text-align: justify;\">Example for a MySQL database :<\/p>\n<pre>production:\n  adapter: mysql\n  database: redmine\n  host: localhost\n  username: redmine\n  password: my_password\n<\/pre>\n<p style=\"text-align: justify;\">6. Generate a session store secret. According to redmine wiki, this step is required on the <strong>trunk<\/strong> version of Redmine at <a title=\"Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.\" href=\"http:\/\/www.redmine.org\/projects\/redmine\/repository\/revisions\/2493\">r2493<\/a> or above and the released 0.8.7 version or above.<\/p>\n<pre>rake generate_session_store<\/pre>\n<p style=\"text-align: justify;\">7. Create the database structure, by running the following command under the application root directory :<\/p>\n<pre>RAILS_ENV=production rake db:migrate<\/pre>\n<p>it will follow by a bunch of log output :<\/p>\n<pre>[root@localhost redcomm]# RAILS_ENV=production rake db:migrate\n(in \/var\/www\/html\/redcomm)\n==  Setup: migrating ==========================================================\n-- create_table(\"attachments\", {:force=&gt;true})\n   -&gt; 0.0151s\n-- create_table(\"auth_sources\", {:force=&gt;true})\n   -&gt; 0.0269s\n-- create_table(\"custom_fields\", {:force=&gt;true})\n   -&gt; 0.0049s\n-- create_table(\"custom_fields_projects\", {:force=&gt;true, :id=&gt;false})\n   -&gt; 0.0071s\n-- create_table(\"custom_fields_trackers\", {:force=&gt;true, :id=&gt;false})\n   -&gt; 0.0080s\n-- create_table(\"custom_values\", {:force=&gt;true})\n   -&gt; 0.0075s\n-- create_table(\"documents\", {:force=&gt;true})\n   -&gt; 0.0272s\n-- add_index(\"documents\", [\"project_id\"], {:name=&gt;\"documents_project_id\"})\n   -&gt; 0.0062s\n-- create_table(\"enumerations\", {:force=&gt;true})\n   -&gt; 0.0059s\n\n....\n\n==  ChangeChangesPathLengthLimit: migrating ===================================\n-- change_column(:changes, :path, :text, {:null=&gt;true, :default=&gt;nil})\n   -&gt; 0.0083s\n-- change_column(:changes, :path, :text, {:null=&gt;false})\n   -&gt; 0.0086s\n-- change_column(:changes, :from_path, :text)\n   -&gt; 0.0152s\n==  ChangeChangesPathLengthLimit: migrated (0.0329s) ==========================\n\n==  EnableCalendarAndGanttModulesWhereAppropriate: migrating ==================\n==  EnableCalendarAndGanttModulesWhereAppropriate: migrated (0.0041s) =========\n<\/pre>\n<p style=\"text-align: justify;\">just ignore it and only pay attention at the end of it, as long as there are no error word, it&#8217;s ok \ud83d\ude42\u00a0 It will create tables and an administrator account. Just in case you get this error :<\/p>\n<pre>Rake aborted!\nno such file to load -- net\/https\n<\/pre>\n<p>then you probably doesn&#8217;t have openssl library on the system, install openssl package from repository.<\/p>\n<p>8. Insert default configuration data in database, by running the following command :<\/p>\n<pre>[root@krsprogdomain redcomm]# RAILS_ENV=production rake redmine:load_default_data\n(in \/var\/www\/html\/redcomm)\n\nSelect language: bg, bs, ca, cs, da, de, el, en, en-GB, es, eu, fi, fr, gl, he, hr, hu, id, it, ja, ko, lt, lv, mk, mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sr, sr-YU, sv, th, tr, uk, vi, zh, zh-TW [en] en\n====================================\nDefault configuration data loaded.<\/pre>\n<p style=\"text-align: justify;\">This step is optional but <strong>highly recommended<\/strong>, as you  can define your own configuration from scratch. It will load default  roles, trackers, statuses, workflows and enumerations. I&#8217;m using default english language.<\/p>\n<p>9. Setting up permissions<\/p>\n<p style=\"text-align: justify;\">The user who runs Redmine must have write permission on the following subdirectories: <code>files<\/code>, <code>log<\/code>, <code>tmp<\/code> (create the last one if not present).<\/p>\n<p>Assuming you run Redmine with a <code>user<\/code> user :<\/p>\n<pre>chown -R user:user files log tmp public\/plugin_assets\/\nchmod -R 755 files log tmp public\/plugin_assets<\/pre>\n<p>10. Test the installation by running WEBrick web server :<\/p>\n<pre>ruby script\/server webrick -e production<\/pre>\n<pre>[root@localhost redcomm]# ruby script\/server webrick -e production\n=&gt; Booting WEBrick\n=&gt; Rails 2.3.5 application starting on http:\/\/0.0.0.0:3000\n=&gt; Call with -d to detach\n=&gt; Ctrl-C to shutdown server\n[2010-11-23 13:42:36] INFO  WEBrick 1.3.1\n[2010-11-23 13:42:36] INFO  ruby 1.8.7 (2009-06-12) [i586-linux]\n[2010-11-23 13:42:41] INFO  WEBrick::HTTPServer#start: pid=28679 port=3000\n\nProcessing WelcomeController#index (for 10.10.13.33 at 2010-11-23 13:43:06) [GET]\n  Parameters: {\"action\"=&gt;\"index\", \"controller\"=&gt;\"welcome\"}\nRendering template within layouts\/base\nRendering welcome\/index\nCompleted in 136ms (View: 42, DB: 34) | 200 OK [http:\/\/10.10.13.7\/]<\/pre>\n<p style=\"text-align: justify;\">Once WEBrick has started, point your browser to <a href=\"http:\/\/localhost:3000\/\">http:\/\/localhost:3000\/<\/a>. You should now see the application welcome page.<\/p>\n<pre style=\"text-align: justify;\"><em>Note: Webrick is <strong>not<\/strong> suitable for normal use, please  only use webrick for testing that the installation up to this point is  functional. It is not recommended to use webrick for anything other than  development. Use one of the many other guides in this wiki to setup  redmine to use either passenger (aka mod_rails) or mongrel to serve up  your redmine.<\/em><\/pre>\n<p>11. Use default administrator account to log in:<\/p>\n<ul>\n<li>login: admin<\/li>\n<li>password: admin<\/li>\n<\/ul>\n<p>You can go to <code>Admin &amp; Settings<\/code> to modify application settings.<\/p>\n<p><a href=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2010\/11\/redmine.jpg\" rel=\"lightbox[1416]\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-1424\" title=\"redmine\" src=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2010\/11\/redmine-300x200.jpg\" alt=\"\" width=\"300\" height=\"200\" \/><\/a><\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Note :<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">As you may see from note at step 10 about using webrick that can only be use for testing the installation purposes, not for normal use ! The webrick http server is only fast on localhost and if you trying to acces from local network it was terribly slow, can&#8217;t be used ! You may consider using <a href=\"http:\/\/www.redmine.org\/projects\/redmine\/wiki\/HowTo_configure_Apache_to_run_Redmine\">apache<\/a>, <a href=\"http:\/\/www.redmine.org\/projects\/redmine\/wiki\/HowTo_configure_Nginx_to_run_Redmine\">nginx<\/a> or <a href=\"http:\/\/www.redmine.org\/projects\/redmine\/wiki\/HowTo_run_Redmine_with_a_Mongrel_cluster\">mongrel<\/a> for that purpose.<\/p>\n<p>Have fun with your project ! \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Redmine is a powerful and flexible project management web apps written on ruby on rails framework. I&#8217;ve been using trac for years and want to try this redmine for further functionality and exploring possibility. Been lucky to install redmine on my klixs server on the first try, and here is the steps I want to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1424,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,9],"tags":[193,207],"_links":{"self":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/1416"}],"collection":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1416"}],"version-history":[{"count":0,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/1416\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/media\/1424"}],"wp:attachment":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}