{"id":340,"date":"2013-03-26T20:30:04","date_gmt":"2013-03-26T19:30:04","guid":{"rendered":"http:\/\/www.btrnaidu.com\/?p=340"},"modified":"2013-03-26T20:30:04","modified_gmt":"2013-03-26T19:30:04","slug":"configuring-powerdns-n-rails","status":"publish","type":"post","link":"https:\/\/btrnaidu.com\/index.php\/configuring-powerdns-n-rails\/","title":{"rendered":"Configuring Powerdns On Rails"},"content":{"rendered":"<p>I was following the link <a title=\"powerdns-on-rails\" href=\"http:\/\/kennethkalmer.github.com\/powerdns-on-rails\/\">powerdns-on-rails<\/a> and had trouble configuring. \u00a0An improved steps to install on a clean ubuntu x64 server is documented here. \u00a0Might be of help for someone.<\/p>\n<p><!--more--><\/p>\n<p><!--more--><strong>Setps<\/strong>:<\/p>\n<p>== install required packages ==<\/p>\n<p style=\"padding-left: 30px;\">apt-get install git\u00a0make build-essential g++ ruby1.9.1-full mysql mysql-server libmysqlclient-dev libxslt-dev libxml2-dev libreadline-ruby1.9 libruby1.9 libopenssl-ruby libpq-dev sqlite-devel libsqlite3-dev<\/p>\n<p>== now we are ready for the powerdns-on-rails installation ==<\/p>\n<p style=\"padding-left: 30px;\">git clone git:\/\/github.com\/kennethkalmer\/powerdns-on-rails.git<br \/>\ncd powerdns-on-rails\/<br \/>\ncp config\/database.yml.template config\/database.yml<\/p>\n<p>== update the database.yml to reflect mysql settings, specially the password ==<\/p>\n<p style=\"padding-left: 30px;\">vi config\/database.yml<\/p>\n<p>== you need to make sure you have created the database powerdns_developement before contineuwing further ==<\/p>\n<p style=\"padding-left: 30px;\">gem install bundler<br \/>\nbundle install<br \/>\nrake db:migrate<br \/>\nrake db:seed<br \/>\nrake generate_secret_token<\/p>\n<p style=\"padding-left: 30px;\">You are all set to fire command &#8216;.\/script\/rails s&#8217; and if firewall is not blocking you on port 3000, you should be able to see the login page.<\/p>\n<p>In the main page, the default username given is wrong. \u00a0Please use admin@example.com as the username.<\/p>\n<p><strong>Running rails on port 80<\/strong><\/p>\n<p style=\"padding-left: 30px;\">If you want to run rails on port 80, please pass &#8216;-p80&#8217; as command line argument while starting the server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was following the link powerdns-on-rails and had trouble configuring. \u00a0An improved steps to install on a clean ubuntu x64 server is documented here. \u00a0Might be of help for someone.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[118,123],"tags":[],"class_list":["post-340","post","type-post","status-publish","format-standard","hentry","category-info","category-powerdns"],"_links":{"self":[{"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/posts\/340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/comments?post=340"}],"version-history":[{"count":4,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/posts\/340\/revisions"}],"predecessor-version":[{"id":344,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/posts\/340\/revisions\/344"}],"wp:attachment":[{"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/media?parent=340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/categories?post=340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/tags?post=340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}