{"id":2469,"date":"2011-01-16T01:26:49","date_gmt":"2011-01-16T01:26:49","guid":{"rendered":"http:\/\/www.knowledgement.ie\/?p=383"},"modified":"2011-01-16T01:26:49","modified_gmt":"2011-01-16T01:26:49","slug":"prepare-a-ruby-on-rails-web-server","status":"publish","type":"post","link":"https:\/\/targetintegration.com\/en_gb\/prepare-a-ruby-on-rails-web-server\/","title":{"rendered":"Prepare a Ruby on Rails Web Server"},"content":{"rendered":"<p>We have done the installation of Redmine on Ubuntu 10.x but what if you want to install Redmine or any other Ruby on Rails based application you need to prepare your server to have Ruby and Rails installed. You also need Passenger which will allow you to run a Ruby on Rails application on Apache. The following instructions should work on Debian Lenny (5.0) and Ubuntu 9.x\/10.x. Let me know how you get on.<\/p>\n<p>Let&#8217;s start by installing Apache web server.<\/p>\n<p>{code}sudo apt-get install apache2 apache2-dev{\/code}<\/p>\n<p>I am getting you to install Apache development headers as well as we will need them later on; while installing passenger. Now, let&#8217;s install Ruby.<\/p>\n<p>{code}sudo aptitude install ruby-dev ruby ri rdoc irb{\/code}<\/p>\n<p>Once the above completes without any errors, you can check the Ruby version using the following command.<\/p>\n<p>{code}ruby -v{\/code}<\/p>\n<p>Download the latest version of Ruby Gems. At the time of writing this article the latest Ruby Gems version is 1.4.1<\/p>\n<p>{code}wget http:\/\/production.cf.rubygems.org\/rubygems\/rubygems-1.4.1.tgz {\/code}<\/p>\n<p>Untar and run the setup from inside the folder.<\/p>\n<p>{code}tar xvfz rubygems-1.4.1.tgz<\/p>\n<p>cd rubygems-1.4.1<\/p>\n<p>ruby .\/setup.rb{\/code}<\/p>\n<p>Once done you can create a link so that gem command works<\/p>\n<p>{code}ln -s \/usr\/bin\/gem1.8 \/usr\/bin\/gem{\/code}<\/p>\n<p>The following will help you to check the version<\/p>\n<p>{code}gem -v{\/code}<\/p>\n<p>Now let&#8217;s install Rails.The following command may take a min to start so don&#8217;t get worried. Also, it will install the latest version of Rails but the latest version of Redmine only supports version 2.3.5 of Rails so you should use the second command below.<\/p>\n<p>{code}gem install rails<\/p>\n<p>gem install rails -v=2.3.5{\/code}<\/p>\n<p>You will also need rack version 1.0.1 for Redmine.<\/p>\n<p>{code}gem install rack -v=1.0.1{\/code}<\/p>\n<p>That completes the installation of Ruby on Rails but now you need the web server which could serve Ruby applications e.g. Redmine.<\/p>\n<p>{code}gem install passenger<\/p>\n<p>passenger-install-apache2-module{\/code}<\/p>\n<p>Now follow the instructions provided by the passenger installer and the module will be ready to use with Apache Web Server. Don&#8217;t forget to restart your web server to make the changes take effect.<\/p>","protected":false},"excerpt":{"rendered":"<p>We have done the installation of Redmine on Ubuntu 10.x but what if you want to install Redmine or any&#8230;<\/p>","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[44],"class_list":["post-2469","post","type-post","status-publish","hentry","category-article","tag-online-services"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Prepare a Ruby on Rails Web Server -<\/title>\n<meta name=\"description\" content=\"We have done the installation of Redmine on Ubuntu 10.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/targetintegration.com\/en_gb\/prepare-a-ruby-on-rails-web-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Prepare a Ruby on Rails Web Server -\" \/>\n<meta property=\"og:description\" content=\"We have done the installation of Redmine on Ubuntu 10.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/targetintegration.com\/en_gb\/prepare-a-ruby-on-rails-web-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Target Integration\" \/>\n<meta property=\"article:published_time\" content=\"2011-01-16T01:26:49+00:00\" \/>\n<meta name=\"author\" content=\"Aman Thakral\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aman Thakral\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/\"},\"author\":{\"name\":\"Aman Thakral\",\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/person\/9956d46591619b474ed534d4bae9a37d\"},\"headline\":\"Prepare a Ruby on Rails Web Server\",\"datePublished\":\"2011-01-16T01:26:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/\"},\"wordCount\":370,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/targetintegration.com\/#organization\"},\"keywords\":[\"online services\"],\"articleSection\":[\"Article\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/\",\"url\":\"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/\",\"name\":\"Prepare a Ruby on Rails Web Server -\",\"isPartOf\":{\"@id\":\"https:\/\/targetintegration.com\/#website\"},\"datePublished\":\"2011-01-16T01:26:49+00:00\",\"description\":\"We have done the installation of Redmine on Ubuntu 10.\",\"breadcrumb\":{\"@id\":\"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/targetintegration.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prepare a Ruby on Rails Web Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/targetintegration.com\/#website\",\"url\":\"https:\/\/targetintegration.com\/\",\"name\":\"Target Integration\",\"description\":\"Empowering You!\",\"publisher\":{\"@id\":\"https:\/\/targetintegration.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/targetintegration.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/targetintegration.com\/#organization\",\"name\":\"Target Integration\",\"url\":\"https:\/\/targetintegration.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/targetintegration.com\/wp-content\/uploads\/\/2021\/05\/ti-logo2-2.svg\",\"contentUrl\":\"https:\/\/targetintegration.com\/wp-content\/uploads\/\/2021\/05\/ti-logo2-2.svg\",\"width\":172,\"height\":65,\"caption\":\"Target Integration\"},\"image\":{\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/person\/9956d46591619b474ed534d4bae9a37d\",\"name\":\"Aman Thakral\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5d3832136f194dc02b46be42471b0a19833e6a89e0c27d4f36549afb93d2a431?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5d3832136f194dc02b46be42471b0a19833e6a89e0c27d4f36549afb93d2a431?s=96&d=mm&r=g\",\"caption\":\"Aman Thakral\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Prepare a Ruby on Rails Web Server -","description":"We have done the installation of Redmine on Ubuntu 10.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/targetintegration.com\/en_gb\/prepare-a-ruby-on-rails-web-server\/","og_locale":"en_GB","og_type":"article","og_title":"Prepare a Ruby on Rails Web Server -","og_description":"We have done the installation of Redmine on Ubuntu 10.","og_url":"https:\/\/targetintegration.com\/en_gb\/prepare-a-ruby-on-rails-web-server\/","og_site_name":"Target Integration","article_published_time":"2011-01-16T01:26:49+00:00","author":"Aman Thakral","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Aman Thakral","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/#article","isPartOf":{"@id":"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/"},"author":{"name":"Aman Thakral","@id":"https:\/\/targetintegration.com\/#\/schema\/person\/9956d46591619b474ed534d4bae9a37d"},"headline":"Prepare a Ruby on Rails Web Server","datePublished":"2011-01-16T01:26:49+00:00","mainEntityOfPage":{"@id":"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/"},"wordCount":370,"commentCount":0,"publisher":{"@id":"https:\/\/targetintegration.com\/#organization"},"keywords":["online services"],"articleSection":["Article"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/","url":"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/","name":"Prepare a Ruby on Rails Web Server -","isPartOf":{"@id":"https:\/\/targetintegration.com\/#website"},"datePublished":"2011-01-16T01:26:49+00:00","description":"We have done the installation of Redmine on Ubuntu 10.","breadcrumb":{"@id":"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/targetintegration.com\/en_us\/prepare-a-ruby-on-rails-web-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/targetintegration.com\/"},{"@type":"ListItem","position":2,"name":"Prepare a Ruby on Rails Web Server"}]},{"@type":"WebSite","@id":"https:\/\/targetintegration.com\/#website","url":"https:\/\/targetintegration.com\/","name":"Target Integration","description":"Empowering You!","publisher":{"@id":"https:\/\/targetintegration.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/targetintegration.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/targetintegration.com\/#organization","name":"Target Integration","url":"https:\/\/targetintegration.com\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/targetintegration.com\/#\/schema\/logo\/image\/","url":"https:\/\/targetintegration.com\/wp-content\/uploads\/\/2021\/05\/ti-logo2-2.svg","contentUrl":"https:\/\/targetintegration.com\/wp-content\/uploads\/\/2021\/05\/ti-logo2-2.svg","width":172,"height":65,"caption":"Target Integration"},"image":{"@id":"https:\/\/targetintegration.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/targetintegration.com\/#\/schema\/person\/9956d46591619b474ed534d4bae9a37d","name":"Aman Thakral","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/targetintegration.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5d3832136f194dc02b46be42471b0a19833e6a89e0c27d4f36549afb93d2a431?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5d3832136f194dc02b46be42471b0a19833e6a89e0c27d4f36549afb93d2a431?s=96&d=mm&r=g","caption":"Aman Thakral"}}]}},"_links":{"self":[{"href":"https:\/\/targetintegration.com\/en_gb\/wp-json\/wp\/v2\/posts\/2469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/targetintegration.com\/en_gb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/targetintegration.com\/en_gb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/targetintegration.com\/en_gb\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/targetintegration.com\/en_gb\/wp-json\/wp\/v2\/comments?post=2469"}],"version-history":[{"count":0,"href":"https:\/\/targetintegration.com\/en_gb\/wp-json\/wp\/v2\/posts\/2469\/revisions"}],"wp:attachment":[{"href":"https:\/\/targetintegration.com\/en_gb\/wp-json\/wp\/v2\/media?parent=2469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/targetintegration.com\/en_gb\/wp-json\/wp\/v2\/categories?post=2469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/targetintegration.com\/en_gb\/wp-json\/wp\/v2\/tags?post=2469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}