<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7410610850385112976</id><updated>2024-09-20T18:55:26.822-07:00</updated><title type='text'>Rails Installation guide and quick fix tips</title><subtitle type='html'>All of the post under this topic will be useful to the developers who are working in Rails with various UNIX/Linux servers</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-6874205760760087632</id><published>2019-06-19T00:16:00.000-07:00</published><updated>2019-06-21T07:28:24.295-07:00</updated><title type='text'>Redis &amp; nginx configuration for websocket/actionCable</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
Start redis server =&amp;gt; redis-server &lt;br /&gt;
redis console =&amp;gt; redis-cli&lt;br /&gt;
&lt;br /&gt;
view available databases =&amp;gt; config get databases&lt;br /&gt;
&lt;br /&gt;
pubsub channels global*&lt;br /&gt;
pubsub channels global_notification_2&lt;br /&gt;
pubsub channels global_notification&lt;br /&gt;
&lt;br /&gt;
pubsub channels * =&amp;gt; Lists all the available channels &lt;br /&gt;
pubsub numsub global_notification_2 =&amp;gt; returns the number of subscribers &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;From unix command line directly &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
redis-cli PUBSUB CHANNELS &lt;br /&gt;
redis-cli PUBSUB NUMSUB global_notification_2&lt;br /&gt;
&lt;br /&gt;
[root@api prod-openmednet-api]# redis-cli PUBSUB CHANNELS &lt;br /&gt;
1) &quot;_action_cable_internal&quot;&lt;br /&gt;
2) &quot;global_notification_2&quot;&lt;br /&gt;
&lt;br /&gt;
[root@api prod-openmednet-api]# redis-cli PUBSUB CHANNELS global_notification_2&lt;br /&gt;
1) &quot;global_notification_2&quot;&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;[root@api prod-openmednet-api]# redis-cli PUBSUB NUMSUB global_notification_2&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;1) &quot;global_notification_2&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;




&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;2) (integer) 2&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;NGINX configuration:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;worker_processes&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;auto;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;worker_rlimit_nofile 500000;&amp;nbsp; #=&amp;gt; refer&amp;nbsp;RLIMIT_NOFILE&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-size-adjust: auto;&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;server {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;error_log&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;logs/dev/error.log&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;warn;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;listen &lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;80 default_server;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;server_name&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;devapi.openmednet.org;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;root &lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;/home/rubyapps/OMNR5/OpenMedNet-R5/dev-openmednet-api/public;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;rails_env development;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;passenger_enabled on;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;if ($http_user_agent ~* LWP::Simple|BBBike|jorgee) {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;return 403;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;access_log&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;logs/dev/host.dev.access.log&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;main;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;error_page &lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;500 502 503 504&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;/50x.html;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;location = /50x.html {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;root &lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;html;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;location /cable {&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;passenger_app_group_name omndevapi_action_cable;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;passenger_force_max_concurrent_requests_per_process 0;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;setting RLIMIT_NOFILE&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;step: 1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;vi /etc/security/limits.conf&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;add the following two lines at the end of the file&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;* soft nofile 120000&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;



&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;* hard nofile 120000&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;ref:&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://caradede.blogspot.com/2017/12/how-to-solve-centos-7-nofile-limit-nginx.html&quot;&gt;https://caradede.blogspot.com/2017/12/how-to-solve-centos-7-nofile-limit-nginx.html&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;mkdir&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;/etc/systemd/system/nginx.service.d&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;vi /etc/systemd/system/nginx.service.d/nofile_limit.conf&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;have the following two lines in that file&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;[Service]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;



&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;LimitNOFILE=500000&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;background-color: #dadada; color: #222299; font-family: Consolas, Monaco, monospace; font-size: 13.28px; font-variant-ligatures: normal; white-space: pre;&quot;&gt;systemctl daemon-reload
systemctl restart nginx.service&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;background-color: #dadada; color: #222299; font-family: Consolas, Monaco, monospace; font-size: 13.28px; font-variant-ligatures: normal; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;background-color: #dadada; color: #222299; font-family: Consolas, Monaco, monospace; font-size: 13.28px; font-variant-ligatures: normal; white-space: pre;&quot;&gt;or simply set &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.s2 {font-variant-ligatures: no-common-ligatures; color: #b42419}
&lt;/style&gt;


&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;setsebool -P &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;httpd_set&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;rlimit 1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;And then have the following 3 lines of code @&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;/etc/sysctl.conf&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;net.core.somaxconn = 4096&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;fs.file-max = 120000&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;




&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;vm.overcommit_memory = 1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Then don&#39;t forget to restart the machine to apply the settings. AFter restart&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;check &quot;&lt;/span&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;ulimit -n&quot; it should match&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;fs.file-max above&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;this command too will match&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;cat /proc/$(cat /opt/nginx/logs/nginx.pid)/limits | grep open.files&lt;/span&gt;&lt;/div&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/6874205760760087632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2019/06/redis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/6874205760760087632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/6874205760760087632'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2019/06/redis.html' title='Redis &amp; nginx configuration for websocket/actionCable'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-3550208890921079796</id><published>2019-06-13T01:05:00.003-07:00</published><updated>2019-06-13T01:05:28.734-07:00</updated><title type='text'>Mac stuffs</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;table style=&quot;background-color: #fefefe; border-collapse: collapse; border-spacing: 0px; color: black; margin: 1em 0px; width: 599px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style=&quot;background-color: #efefef; border: 1px solid rgb(204, 204, 204); color: #444444; padding: 5px; text-align: center; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;vi command&lt;/span&gt;&lt;/th&gt;&lt;th style=&quot;background-color: #efefef; border: 1px solid rgb(204, 204, 204); color: #444444; padding: 5px; text-align: center; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;description&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;0&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;move to beginning of the current line&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;move to end of line&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;H&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;move to the top of the current window (high)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;M&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;move to the middle of the current window (middle)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;L&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;move to the bottom line of the current window (low)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1G&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;move to the first line of the file&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;20G&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;move to the 20th line of the file&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;G&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;border: 1px solid rgb(204, 204, 204); color: #636363; font-family: Palatino, Georgia, Times; font-size: 16px; padding: 5px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;move to the last line of the file&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/3550208890921079796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2019/06/mac-stuffs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/3550208890921079796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/3550208890921079796'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2019/06/mac-stuffs.html' title='Mac stuffs'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-2861000312400696329</id><published>2019-06-05T23:15:00.003-07:00</published><updated>2019-06-19T04:36:21.552-07:00</updated><title type='text'>Postgres points </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Export sql data to file&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;copy (select * from table-name) to &#39;/tmp/cta.pl.list&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;in root&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;dnf install postgresql-server postgresql-devel&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;service postgresql start&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;mkdir /home/pgdir&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;chown postgres:postgres /home/pgdir -R&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;chmod 777 /home/pgdir -R&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;su postgres&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;initdb -D /home/pgdir&lt;/span&gt;&lt;/div&gt;
pg_ctl -D /home/pgdir -l /home/pgdir/log start&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/2861000312400696329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2019/06/postgres-points.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/2861000312400696329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/2861000312400696329'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2019/06/postgres-points.html' title='Postgres points '/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-4391493783286084424</id><published>2019-05-09T04:11:00.002-07:00</published><updated>2019-05-09T04:11:32.697-07:00</updated><title type='text'>Sublime</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-stretch: normal; line-height: normal; text-align: left; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: small;&quot;&gt;1. Accessing remote files in sublime&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;ssh -R 52698:localhost:52698 root@192.xxx.xxx.xxx =&amp;gt; run this command in local&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;root@192.xxx.xxx.xxx&amp;nbsp; - it is the target remote ip from where you are referring the file to edit in local&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;b&gt;Install remote sublime at remote server&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;curl -o /usr/local/bin/rmate https://raw.githubusercontent.com/aurora/rmate/master/rmate&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;sudo chmod +x /usr/local/bin/rmate&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; caret-color: rgb(0, 0, 0); font-family: Menlo; font-size: 11px; font-stretch: normal; line-height: normal; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;rmate filename&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/4391493783286084424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2019/05/sublime.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/4391493783286084424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/4391493783286084424'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2019/05/sublime.html' title='Sublime'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-1128695724198902127</id><published>2019-05-09T04:09:00.000-07:00</published><updated>2019-06-13T01:05:00.654-07:00</updated><title type='text'>Linux/Unix useful commands</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 12px; text-size-adjust: auto;&quot;&gt;
Find count of files in a folder&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;
&lt;div style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;ls -l /san1/home/ports/Quest/QuestHL7incoming/new/prod/comite_part1_2xx/ | wc -l&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;Enable/Disable firewall&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
CentOS V &amp;lt; 7&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
service iptables list&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
service iptables start&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
service iptables stop&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
CentOS V &amp;gt;= 7&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Status: systemctl status firewalld&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;Start: systemctl start firewalld&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Stop: systemctl stop firewalld&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
Login to a server without password&lt;br /&gt;
run&amp;nbsp;&lt;span style=&quot;background-color: #eeeeee; color: #333333; font-family: &amp;quot;courier 10 pitch&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 0.9375rem;&quot;&gt;ssh-keygen from source machine will create key stored at&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #eeeeee; color: #333333; font-family: &amp;quot;courier 10 pitch&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 0.9375rem;&quot;&gt;~/.ssh/id_rsa.pub copy the code alone and paste in the destination server &amp;gt; autorised_keys&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: xx-small;&quot;&gt;/root/.ssh/authorized_keys =&amp;gt; if not exists in the destination server, you can create it &lt;/span&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/div&gt;
&lt;/div&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/1128695724198902127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2019/05/linuxunix-useful-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/1128695724198902127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/1128695724198902127'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2019/05/linuxunix-useful-commands.html' title='Linux/Unix useful commands'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-5455970624000561668</id><published>2019-05-09T04:06:00.000-07:00</published><updated>2019-05-09T04:06:06.688-07:00</updated><title type='text'>Rails 5 - assets precompile issue - Easy way to trace</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Run the following command under rails console to trace which file raising issue upon precompiling&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;JS_PATH = &quot;app/assets/javascripts/**/*.js&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Dir[JS_PATH].each do |file_name| &lt;br /&gt;puts &quot;\n#{file_name}&quot; &lt;br /&gt;puts Uglifier.compile(File.read(file_name)) &lt;br /&gt;end&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse; border: none; font-size: 10pt; table-layout: fixed; width: 0px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;100&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/5455970624000561668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2019/05/rails-5-assets-precompile-issue-easy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/5455970624000561668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/5455970624000561668'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2019/05/rails-5-assets-precompile-issue-easy.html' title='Rails 5 - assets precompile issue - Easy way to trace'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-3793080391789945801</id><published>2015-05-17T22:03:00.002-07:00</published><updated>2019-05-09T03:58:29.401-07:00</updated><title type='text'>UNIX - Process/Jobs</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;Playing the commands fg , ctrl+z ,&amp;nbsp;bg and jobs&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
In this post I would like to share few basic process or job specific tricks in UNIX.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1. If you want to run a process in bacground just add a &amp;amp; as suffix with a space&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Eg:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@localhost kannan]# ruby test.rb &amp;amp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
here this process test.rb will run in background&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2. If you want list available background tasks/processes/jobs , just use the command &#39;jobs&#39;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Eg:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@localhost kannan]# jobs&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
here the result would be&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[1]+ Running&amp;nbsp;ruby test.rb&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3. If you want to bring a background process in front (foreground) just use fg [#&amp;lt;job number&amp;gt;]&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Eg&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@localhost kannan]# fg #1&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
It will bring the above &#39;ruby test.rb&#39; process in front.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
4. If you want to again move a already running process to background , use two combination of commands&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; a. First pass Ctrl+Z , here you will get a message like &#39;stopped&#39; don&#39;t get upset, it will just suspend&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; b. Do run &#39;bg&#39; command will take the suspended process/job/task to background process&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Eg&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@localhost kannan]# jobs&lt;/div&gt;
&lt;div&gt;
[1]+ &amp;nbsp;Running &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ruby test.rb &amp;amp;&lt;/div&gt;
&lt;div&gt;
[root@localhost kannan]# fg #1&lt;/div&gt;
&lt;div&gt;
ruby test.rb&lt;/div&gt;
&lt;div&gt;
^Z&lt;/div&gt;
&lt;div&gt;
[1]+ &amp;nbsp;Stopped &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ruby test.rb&lt;/div&gt;
&lt;div&gt;
[root@localhost kannan]# bg&lt;/div&gt;
&lt;div&gt;
[1]+ ruby test.rb &amp;amp;&lt;/div&gt;
&lt;div&gt;
[root@localhost kannan]#&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/3793080391789945801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2015/05/unix-processjobs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/3793080391789945801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/3793080391789945801'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2015/05/unix-processjobs.html' title='UNIX - Process/Jobs'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-7706883742994712190</id><published>2013-01-07T22:49:00.000-08:00</published><updated>2013-01-07T22:49:04.920-08:00</updated><title type='text'>RVM with rails1.2.1 and rails 3.2.x</title><content type='html'>rvm install ext-rvm-list&lt;br /&gt;\curl -L https://get.rvm.io | bash -s stable&lt;br /&gt;source /etc/profile.d/rvm.sh&lt;br /&gt;rvm automount&lt;br /&gt;rvm list&lt;br /&gt;whereis ruby&lt;br /&gt;rvm list ruby&lt;br /&gt;rvm list rubies&lt;br /&gt;rvm install 1.8.7&lt;br /&gt;rvm install 1.9.3&lt;br /&gt;rvm list&lt;br /&gt;rvm set default ruby-1.8.7-p371&lt;br /&gt;rvm --help&lt;br /&gt;rvm default ruby-1.8.7-p371&lt;br /&gt;rvm list&lt;br /&gt;gem list&lt;br /&gt;yum install gcc-c++&lt;br /&gt;yum install openssl&lt;br /&gt;rvm pkg install openssl&lt;br /&gt;rvm pkg install iconv&lt;br /&gt;rvm list&lt;br /&gt;rvm use ruby-1.9.3-p327&lt;br /&gt;svn co http://b3.flexis.net:3001/omie_dev_r3&lt;br /&gt;cd omie_dev_r3/&lt;br /&gt;ls&lt;br /&gt;rvm list&lt;br /&gt;bundle install&lt;br /&gt;yum install postgresql postgresql-devel&lt;br /&gt;gem install pg -v &#39;0.14.1&#39;&lt;br /&gt;bundle install&lt;br /&gt;cd ..&lt;br /&gt;cd omie_dev&lt;br /&gt;ls&lt;br /&gt;rvm list&lt;br /&gt;rvm use ruby-1.8.7-p371&lt;br /&gt;clear&lt;br /&gt;ruby -v&lt;br /&gt;gem install rails -v 1.2.1&lt;br /&gt;gem install imagesize -v 0.1.1&lt;br /&gt;gem install parseexcel 0.5.2&lt;br /&gt;gem install payment -v 1.0.1&lt;br /&gt;gem install pdf-writer -v 1.1.3&lt;br /&gt;gem install pdfkit -v 0.5.0&lt;br /&gt;gem install pg -v 0.14.0&lt;br /&gt;gem install postgres -v&amp;nbsp; 0.7.9.2008.01.28&lt;br /&gt;gem install rmagick -v 2.13.1&lt;br /&gt;gem install rubyzip -v 0.9.4&lt;br /&gt;gem install simple_xlsx_writer -v 0.5.3&lt;br /&gt;gem install spreadsheet -v 0.7.3&lt;br /&gt;gem install tlsmail -v 0.0.1&lt;br /&gt;gem install ruby-debug-ide -v 0.4.9&lt;br /&gt;gem install ruby-ole -v 1.2.11.3&lt;br /&gt;gem install ruby-debug-base -v 0.10.4</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/7706883742994712190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2013/01/rvm-with-rails121-and-rails-32x.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/7706883742994712190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/7706883742994712190'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2013/01/rvm-with-rails121-and-rails-32x.html' title='RVM with rails1.2.1 and rails 3.2.x'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-3683942859635742095</id><published>2012-05-10T10:03:00.003-07:00</published><updated>2012-06-17T22:08:16.437-07:00</updated><title type='text'>Errno::ENOENT: No such file or directory</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
HTML to PDF conversion is very easy in rails and pdfkit will be useful in this case, wkhtmltopdf tool will be supporting tool so you can easily convert an html to pdf.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
In my experience I used the following steps:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
gem install pdfkit -v 0.5.0&lt;/div&gt;
&lt;div&gt;
gem install wkhtmltopdf -v 0.1.2&lt;/div&gt;
&lt;div&gt;
gem install wkhtmltopdf-binary&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Some times this sequence will not work, so I use the following as per the instruction from&amp;nbsp;&lt;a href=&quot;https://github.com/pdfkit/pdfkit/wiki/Installing-WKHTMLTOPDF&quot; style=&quot;color: #3465a4;&quot;&gt;https://github.com/pdfkit/pdfkit/wiki/Installing-WKHTMLTOPDF&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Be careful to download the appropriate wkhtmltopdf tar ball, it depends on your os architecture, like i386 or 64&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
wget &lt;a href=&quot;http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2&quot; style=&quot;color: #3465a4;&quot;&gt;http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2&lt;/a&gt; &lt;br /&gt;
tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2&lt;br /&gt;
mv wkhtmltopdf-amd64 &lt;a href=&quot;http://www.blogger.com/usr/local/bin/wkhtmltopdf&quot; style=&quot;color: #3465a4;&quot;&gt;/usr/local/bin/wkhtmltopdf&lt;/a&gt;&lt;br /&gt;
chmod +x &lt;a href=&quot;http://www.blogger.com/usr/local/bin/wkhtmltopdf&quot; style=&quot;color: #3465a4;&quot;&gt;/usr/local/bin/wkhtmltopdf&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Try to convert html to pdf after restarting your web servers.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you get any error like:&amp;nbsp;Errno::ENOENT: No such file or directory then I have a&amp;nbsp;straightforward method and it is very simple too.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Uninstall the gem &quot;wkhtmltopdf&quot;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;div&gt;
gem uninstall wkhtmltopdf&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
then do the above things again, that is:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
wget&amp;nbsp;&lt;a href=&quot;http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2&quot; style=&quot;color: #3465a4;&quot;&gt;http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2&lt;/a&gt;&lt;br /&gt;
tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2&lt;br /&gt;
mv wkhtmltopdf-amd64&amp;nbsp;&lt;a href=&quot;http://www.blogger.com/usr/local/bin/wkhtmltopdf&quot; style=&quot;color: #3465a4;&quot;&gt;/usr/local/bin/wkhtmltopdf&lt;/a&gt;&lt;br /&gt;
chmod +x&amp;nbsp;&lt;a href=&quot;http://www.blogger.com/usr/local/bin/wkhtmltopdf&quot; style=&quot;color: #3465a4;&quot;&gt;/usr/local/bin/wkhtmltopdf&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Restart your web servers, it should work.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/3683942859635742095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2012/05/errnoenoent-no-such-file-or-directory.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/3683942859635742095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/3683942859635742095'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2012/05/errnoenoent-no-such-file-or-directory.html' title='Errno::ENOENT: No such file or directory'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-4991250996014562233</id><published>2012-05-09T05:37:00.000-07:00</published><updated>2012-05-09T05:37:09.202-07:00</updated><title type='text'>Invalid json result</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In rails some times we are getting invalid json outputs say for example, as per the json standard, both the attributes and its values should be enclosed with double quotes (&quot;) but in some of the ruby patches has issues with that. If you are facing such issues then this post will be useful:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Changes what we have to make in the file &#39;core.rb&#39; which is located at:&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
LIB_PATH/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/json/encoders&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
in your rails server, the LIB PATH is&amp;nbsp;/usr/local/lib&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
required function is &quot;encoder&quot; &amp;nbsp;line# 52&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
New Code&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
========&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
define_encoder Hash do |hash|&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; returning result = &#39;{&#39; do&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result &amp;lt;&amp;lt; hash.map do |key, value|&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; key = ActiveSupport::JSON::Variable.new(key.to_s) if&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ActiveSupport::JSON.can_unquote_identifier?(key)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;\&quot;#{key.to_json}\&quot;: #{value.to_json}&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#=&amp;gt; This is line where we included the required quotes, thats it&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end * &#39;, &#39;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result &amp;lt;&amp;lt; &#39;}&#39;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Old Code&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
========&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
define_encoder Hash do |hash|&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; returning result = &#39;{&#39; do&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result &amp;lt;&amp;lt; hash.map do |key, value|&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; key = ActiveSupport::JSON::Variable.new(key.to_s) if&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ActiveSupport::JSON.can_unquote_identifier?(key)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;#{key.to_json}: #{value.to_json}&quot;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end * &#39;, &#39;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result &amp;lt;&amp;lt; &#39;}&#39;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Output Sample: [Json attribute key should be enclosed with quotes]&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Old code will produce the json output as follows:&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
[&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; person: {&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: 1,&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; last_name: &quot;test&quot;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
]&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
New code will produce the json output as follows [Note the json attribute keys are enclosed with quotes]&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
[&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;person&quot;: {&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;id&quot;: 1,&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;last_name&quot;: &quot;test&quot;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
]&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
You can validate the json code at&amp;nbsp;&lt;a href=&quot;http://jsonlint.com/&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;http://jsonlint.com/&lt;/a&gt;&amp;nbsp;, also the site&amp;nbsp;&lt;a href=&quot;http://jsonviewer.stack.hu/&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;http://jsonviewer.stack.hu/&lt;/a&gt;&amp;nbsp;will helps you understand the hierarchy of the json output.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/4991250996014562233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2012/05/invalid-json-result.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/4991250996014562233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/4991250996014562233'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2012/05/invalid-json-result.html' title='Invalid json result'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-7096956675760013169</id><published>2012-05-09T05:19:00.001-07:00</published><updated>2012-05-10T10:33:48.485-07:00</updated><title type='text'>openssl load error</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
If you found any payment issue due to openssl (like require &#39;openssl&#39; fails) then you have to be very careful.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Exact error might be:&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;LoadError: no such file to load -- openssl&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;This error occurred because you have installed your ruby without openssl support. So first install openssl then install ruby with openssl support.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;
If you still getting the error then you can follow the steps:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
1. Check whether the openssl package is installed, if not please use &#39;yum install openssl&#39;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;2. Still the issue not solved then install openssl-dev, also make sure&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 19px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;the library &#39;libruby&#39; is installed&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
3. Still the issue not solved then check the ruby lib has the directory called &amp;nbsp;&#39;openssl&#39;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Note: In my server, the ruby lib is located at:&amp;nbsp;/usr/local/lib/ruby/1.8/, better you can search the exact ruby&#39;s lib through &#39;whereis ruby&#39; command&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
4. If openssl directory is not in your ruby lib then&amp;nbsp;possibly&amp;nbsp;you might get the openssl load error, then you can follow &amp;nbsp;the simple steps:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; a) copy openssl directory from any one of your other servers which is processing the &#39;openssl&#39; and &#39;payment&#39; things successfully&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; b) Then try &#39;require openssl&#39; in your irb environment, If you get any &quot;openssl.so&quot; error, then search the file &quot;openssl.so&quot; and make a&amp;nbsp;symbolic link to the x86_64-linux directory, if the file is not in your system then&amp;nbsp;&amp;nbsp; &amp;nbsp;simply copy the openssl.so from other servers to &#39;x86_64-linux&#39; &amp;nbsp;that is /usr/local/lib/ruby/1.8/x86_64-linux&#39;&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
5. Don&#39;t forget to restart your server (not only the web servers)&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/7096956675760013169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2012/05/openssl-load-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/7096956675760013169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/7096956675760013169'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2012/05/openssl-load-error.html' title='openssl load error'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-5231567090672625098</id><published>2012-05-04T10:11:00.001-07:00</published><updated>2012-05-04T10:11:41.850-07:00</updated><title type='text'>Going to convert your existing Rails 1.2.1 apps to 3.2.3 ? then this post may help you!!!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.85692328074947&quot; style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Rails 1.2.1 =&amp;gt; Rails 3.2.3&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;Actually, we started a product on 2007 with rails 1.2.1, at that time we were busy in the core development and we sincerely forgot to look about the rails updates!! in-between 3-4 years rails jumped to 3.x.x then only we realized that we are doing some funny things so started to review about 3.x.x&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;Almost we are out-dated, but still it is not too far .. We realized that this is right time to convert our existing 1.2.1 apps to 3.2.3 so first we have started to find the practical difficulties and possibilities and learned the followings. The following is the major things for us, you guys may meet some more, but any way it will be helpful for someone.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;Lets checkout one by one.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;1. RVM will helps us to manage different ruby and gems version in a same system&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;2. All required gems should be maintained through Gemfile, it will be useful when the time of deployment&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;3. You have to understand, learn and change the file route.rb &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;4. .rhtml is no longer in use, try to use either .html or .html.erb [I have created a script for this, let me know if any one wants] Note: .html.erb is the recommended extension&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;5. Need to use &amp;lt;%= yield %&amp;gt; instead of &amp;lt;%= @content_for_layout %&amp;gt; in layout&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;6. Here after all js, css and images are referred from ‘assets’ at /app directory instead of /public. and we can’t use /images/omie.gif here , need to use /assets/omie.gif in all of the places where we are referring images like &amp;lt;img&amp;gt; , css etc.,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;7. Have to change pagination usage &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;@rss_pages, @rss_articles = paginate(:rss_articles, :order =&amp;gt; &quot;published_date DESC&quot;, :conditions =&amp;gt; [&quot;publication_string = &amp;nbsp;? &quot;, &quot;NEJM&quot; ])&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;to&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;@rss_articles = &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;RssArticle&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;.paginate(:&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;page&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; =&amp;gt; params[:page], :order =&amp;gt; &quot;published_date DESC&quot;, :conditions =&amp;gt; [&quot;publication_string = &amp;nbsp;? &quot;, &quot;NEJM&quot; ])&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Note: paginate will return only one object instead of two like what we have in our old (1.2.1) method, you can use the same object to get about page information, like @rss_articles.current_page, @rss_articules.next_page&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;In your old method you might uses, @rss_pages.current.next, here it is simple @rss_articles.next_page&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;8. Have to change paginate_by_sql&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;In your older method you might hacked the code in your application controller, but here the gem ‘will_paginate’ will do all of the required things for us. But of-course the usage of paginate_by_sql is bit different, look at our old method&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;@sql = “select * from lab_tests”&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;@unreviewed_pages,@labs_unreviewed = paginate_by_sql(LabTest, @sql,25)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;but now we need to use as:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;@labs_unreviewed = LabTest.paginate_by_sql(@sql,&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;{:page =&amp;gt; page, :per_page =&amp;gt; 25}&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;9. use the function &#39;raw&#39; to avoid HTML encoding &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;lt;% a= “&amp;lt;div&amp;gt; Test &amp;lt;/div&amp;gt;” %&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;lt;%= a %&amp;gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;The output will be a html encoded like &amp;amp;lt;div&amp;amp;lt; Test &amp;amp;lt;/div&amp;amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;lt;%= raw a %&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;The output like what you expected &amp;lt;div&amp;gt; Test &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;10. All session values (&amp;gt; 4kb) must maintain only through active_record_store [We can setup it through config/initializers/session_store.rb] &amp;nbsp;before it is done directly in environment.rb and this one is optional in lower version. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Note: Rails 3 uses a newer version of session schema, need to remove our old one and have to migrate the newer one. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;11. We can’t use render(:layout=&amp;gt;false) &amp;nbsp;in viewer, of-course it is meaningless but some of us used in some of our old view pages (like /comp/_datepicker.rhtml) by our old developers. :p&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;12. request.url is enough instead of request.request_uri &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;13. request.env in enough instead of @request.evn to get environment keys&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;14. We need special plugins to use ‘act_as’ modifiers such as acts_as_list, acts_as_tree. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;it is under in review, as per my current knowledge , we have to use ‘ancestry’. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;ref: &lt;/span&gt;&lt;a href=&quot;https://github.com/stefankroes/ancestry&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;color: #1155cc; font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;https://github.com/stefankroes/ancestry&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;rails plugin install acts_as_tree&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; =&amp;gt; but it raises error. need to review about it&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;15. DateTime is no longer work, use Time always&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;16. There is no remote tag , use remote specifier as argument with the helper&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Say for eg: &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;We used link_to_remote, form_remote_tag remember ?? this is going to be just&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;link_to, form_tag&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;so the code &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;l&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;ink_to_remote(&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&quot;Next&quot;,{:update =&amp;gt; &quot;unreviewed_block&quot;}) become &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;link_to&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;(&quot;Next&quot;,{:update =&amp;gt; &quot;unreviewed_block&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;, :remote =&amp;gt; true}&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;) &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;and the form_remote_tag code&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;form_remote_tag(&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;font-weight: bold; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:update =&amp;gt; &quot;_results_&quot;, &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;font-weight: bold; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:url =&amp;gt; {:controller =&amp;gt; &#39;/chart/demo&#39;, :action =&amp;gt; &#39;add_quick_link_refs&#39;,:id =&amp;gt; &#39;link_ref&#39;}&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;font-weight: bold; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;font-weight: bold; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-weight: bold; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Other HTML code here&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&amp;lt;% end_form_tag %&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-weight: bold; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;becomes &lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;form_tag(&lt;/span&gt;&lt;br /&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-weight: bold; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:update =&amp;gt; &quot;_results_&quot;, &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;font-weight: bold; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:url =&amp;gt; {:controller =&amp;gt; &#39;/chart/demo&#39;, :action =&amp;gt; &#39;add_quick_link_refs&#39;,:id =&amp;gt; &#39;link_ref&#39;},&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;font-weight: bold; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:remote =&amp;gt; true&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;font-weight: bold; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;do&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;font-weight: bold; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-weight: bold; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Other HTML code here&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&amp;lt;% end%&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;Still there exists more.. will try to update if possible.&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/5231567090672625098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2012/05/going-to-convert-your-existing-rails.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/5231567090672625098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/5231567090672625098'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2012/05/going-to-convert-your-existing-rails.html' title='Going to convert your existing Rails 1.2.1 apps to 3.2.3 ? then this post may help you!!!'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-4704082762430813823</id><published>2012-03-30T01:21:00.003-07:00</published><updated>2012-06-22T00:10:46.570-07:00</updated><title type='text'>Rails 1.2.1 with Ruby 1.8.x installation tips</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;strong&gt;ROR Setup (Ruby 1.8.6 , patch level 111, rails 1.2.1, CentOs 6.2 62 bit, Postgres 8.3)&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Make sure rpmforge included in your yum.repo ‘s, you can make it is available through&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
cd /tmp/&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
wget&amp;nbsp;&lt;a href=&quot;http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
rpm --import&amp;nbsp;&lt;a href=&quot;http://apt.sw.be/RPM-GPG-KEY.dag.txt&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;http://apt.sw.be/RPM-GPG-KEY.dag.txt&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;b&gt;Download and install ruby 1.8.6&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
cd /tm/&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p111.tar.bz2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;tar jxf ruby-1.8.6-p111.tar.bz2&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;cd ruby-1.8.6-p111&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
./configure&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
make&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Note: If you found any error like&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
make&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c array.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c bignum.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c class.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c compar.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c dir.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c dln.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c enum.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c error.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c eval.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c file.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c gc.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c hash.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c inits.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c io.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c marshal.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gcc -g -O2 &amp;nbsp;-DRUBY_EXPORT -D_GNU_SOURCE=1 &amp;nbsp;-I. -I. &amp;nbsp;-c math.c&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
math.c:37:13: error: missing binary operator before token &quot;(&quot;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
make: *** [math.o] Error 1&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Just open math.c [Don’t locate any where just use vi math.c from the same same location where you are executing the command ‘make’]&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
And look at the line&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
“#elif define(ERANGE)” it should be “#elif defined(ERANGE)”&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Note: not “define”, it is “defined” =&amp;gt; d is missing in this phrase&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Modify it and again run the same command “make”&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Ref:&amp;nbsp;&lt;a href=&quot;http://stackoverflow.com/questions/5193935/error-when-compiling-ruby-1-8-7-from-source-math-c37-error-missing-binary-op&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;http://stackoverflow.com/questions/5193935/error-when-compiling-ruby-1-8-7-from-source-math-c37-error-missing-binary-op&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;a href=&quot;http://www.iteye.com/topic/679065&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;http://www.iteye.com/topic/679065&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Make install&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Gem installation&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
============&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
cd rubygems-1.3.2&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
ruby setup.rb&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Rails installation&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
============&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gem install rails -v 1.2.1&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
it will installs the following&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Successfully installed rake-0.9.2.2&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Successfully installed activesupport-1.4.0&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Successfully installed activerecord-1.15.1&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Successfully installed actionpack-1.13.1&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Successfully installed actionmailer-1.3.1&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Successfully installed actionwebservice-1.2.1&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Successfully installed rails-1.2.1&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
7 gems installed&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Installing ri documentation for activesupport-1.4.0...&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Installing ri documentation for activerecord-1.15.1...&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Installing ri documentation for actionpack-1.13.1...&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Installing ri documentation for actionmailer-1.3.1...&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Installing ri documentation for actionwebservice-1.2.1...&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Installing RDoc documentation for activesupport-1.4.0...&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Installing RDoc documentation for activerecord-1.15.1...&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Installing RDoc documentation for actionpack-1.13.1...&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Installing RDoc documentation for actionmailer-1.3.1...&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Installing RDoc documentation for actionwebservice-1.2.1...&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Postgresql Install&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
=============&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
cd postgresql-8.1.4&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
./configure&lt;br /&gt;
&lt;br /&gt;
If you found any error like: &quot;readline library not found&quot; then just try to install devel for readline.&lt;br /&gt;
&lt;br /&gt;
yum install readline-devel&lt;br /&gt;
&lt;br /&gt;
then do the configure again using&lt;br /&gt;
&lt;br /&gt;
./configure&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;make&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
make install&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
.~/.bash_login or restart&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
env ARCHFLAGS=&#39;-arch i386&#39; gem install \postgres -- --with-pgsql-dir=/usr/local/pgsql&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Note: We need the postgres gem version 0.7.9.2008.01.28&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
or&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
env ARCHFLAGS=&#39;-arch i386&#39;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
wget&amp;nbsp;&lt;a href=&quot;http://rubygems.org/downloads/postgres-0.7.9.2008.01.28.gem&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;http://rubygems.org/downloads/postgres-0.7.9.2008.01.28.gem&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gem install postgres-0.7.9.2008.01.28.gem -- --with-pgsql-dir=/usr/local/pgsql&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
mkdir /usr/local/pgsql/data&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
chown postgres:postgres /usr/local/pgsql/data&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
ls -ld /usr/local/pgsql/data&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
su postgres&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
cd /tmp&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data &amp;gt;logfile 2&amp;gt;&amp;amp;1 &amp;amp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
createdb omie_dev =&amp;gt; if needed&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
pg_dump omie_dev &amp;lt; omie_dev_backup.sql&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
psql omie_dev&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
PDF Writer&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
========&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gem install color-tools&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gem install hoe -v 2.6.1&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gem install transaction-simple&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
wget&amp;nbsp;&lt;a href=&quot;http://rubygems.org/downloads/pdf-writer-1.1.3.gem&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;http://rubygems.org/downloads/pdf-writer-1.1.3.gem&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gem install pdf-writer-1.1.3.gem&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
ImageMagick&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
==========&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
yum install ImageMagick-devel&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
clear&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
[ `grep /usr/local/lib /etc/ld.so.conf | wc -l` -eq 0 ] &amp;amp;&amp;amp; echo &quot;/usr/local/lib&quot; &amp;gt;&amp;gt; /etc/ld.so.conf&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
ldconfig&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gem install rmagick -r --no-ri --no-rdoc&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Lighttpd installation&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
=============&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
yum install lighttpd lighttpd-devel mod-lighttpd&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
/usr/sbin/lighttpd -v&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
yum install pcre-devel&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
yum install mod_fastcgi&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
yum install lighttpd-fastcgi&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
fcgi installation&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
===========&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
yum install fcgi&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
if it is not work then use the source [you need to download the fcgi with exact version]&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
cd fcgi-2.4.0&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
ls /usr/local/fcgi&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
mkdir /usr/local/fcgi&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
./configure --prefix=/usr/local/fcgi --exec-prefix=/usr/local/fcgi&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
make&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
If you found any error like:&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
make[2]: *** [fcgio.lo] Error 1&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
make[2]: Leaving directory `/somepath/fcgi-2.4.0/libfcgi&#39;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
make[1]: *** [all-recursive] Error 1&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
make[1]: Leaving directory `/somepath/fcgi-2.4.0&#39;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
make: *** [all] Error 2&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
just go include/fcgio.h and add the code “#include &amp;lt;stdio.h&amp;gt;” after&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
“#include &amp;lt;iostream&amp;gt;”&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
ref:&amp;nbsp;&lt;a href=&quot;http://stackoverflow.com/questions/4577453/fcgio-cpp50-error-eof-was-not-declared-in-this-scope&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;http://stackoverflow.com/questions/4577453/fcgio-cpp50-error-eof-was-not-declared-in-this-scope&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/8833718/installing-fastcgi-dev-kit&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;http://stackoverflow.com/questions/8833718/installing-fastcgi-dev-kit&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gem install fcgi -r -- --with-fcgi-lib=/usr/local/fcgi/lib --with-fcgi-include=/usr/local/fcgi/include&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Follow the openssl things at:&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;http://kannannadarajan.blogspot.in/2012/03/lighttpd-with-fastcgi-for-ror-121.html&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
install pdfkit and wkhtmltopdf&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gem install pdfkit -v 0.5.0&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gem install wkhtmltopdf -v 0.1.2&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
gem install wkhtmltopdf-binary&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Make sure the following gem list is installed properly with the specific version&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
actionmailer (1.3.1)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
actionpack (1.13.1)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
actionwebservice (1.2.1)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
activerecord (1.15.1)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
activesupport (1.4.0)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
color (1.4.1)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
color-tools (1.3.0)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
docsplit (0.5.0)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
fcgi (0.8.8)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
hoe (2.6.1)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
json_pure (1.6.6)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
mime-types (1.16)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
parseexcel (0.5.2)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
payment (1.0.1)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
pdf-writer (1.1.3)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
pdfkit (0.5.0)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
polyglot (0.3.2)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
postgres (0.7.9.2008.01.28)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
rails (1.2.1)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
rake (0.9.2.2)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
rmagick (2.13.1)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
roo (1.9.3)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
ruby-ole (1.2.11.1)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
rubyforge (2.0.4)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
spreadsheet (0.6.5.4)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
transaction-simple (1.4.0)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
treetop (1.4.10)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
wkhtmltopdf (0.1.2)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
wkhtmltopdf-binary (0.9.5.3)&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
If your wkhtmltopdf is not working then use the following:&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
wget&lt;a href=&quot;http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;&amp;nbsp;http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
mv wkhtmltopdf-amd64 /usr/local/bin/wkhtmltopdf&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
chmod +x /usr/local/bin/wkhtmltopdf&lt;/div&gt;
&lt;div class=&quot;paragraph_break&quot; style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
service iptables stop&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
pkill -9 ruby&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
pkill -9 lighttpd&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd-omie-dev-ssl.conf/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd-omie-dev.conf&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
su postgres&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
cd /tmp//usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/4704082762430813823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2012/03/ror-setup-ruby-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/4704082762430813823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/4704082762430813823'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2012/03/ror-setup-ruby-1.html' title='Rails 1.2.1 with Ruby 1.8.x installation tips'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-6247162568961146809</id><published>2012-03-30T01:15:00.000-07:00</published><updated>2012-12-27T06:59:24.253-08:00</updated><title type='text'>Lighttpd with fastCGI for ROR 1.2.1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;b&gt;Lighttpd Installation:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
As of now (18-Feb-2011) the version 1.4.28 is the current version of lighttpd, which we need yo downloaded from&amp;nbsp;&lt;a href=&quot;http://www.lighttpd.net/&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;http://www.lighttpd.net/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
tar -zxvf lighttpd-1.4.28.tar.gz&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
cd lighttpd-1.4.28&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
./configure&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
./configure --with-openssl&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Look at lighttpd is automatically mapped at /usr/local/sbin/lighttpd , so try to execute the version check command and the output will be very similar as:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
[root@kannan ~]# /usr/local/sbin/lighttpd -v&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
lighttpd/1.4.28 (ssl) - a light and fast webserver&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Build-Date: Feb 17 2011 16:37:02&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Then, note that there might be a new directory called /etc/lighttpd/ which will contains a default configuration file called &quot;lighttpd.conf&quot; This is the file which will contains the information about how&amp;nbsp; (ROR based) web application is going to act along with script/server. This file is same as&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;webrick/config.rb&amp;nbsp; for Webricks,&lt;/li&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;httpd.conf for Apche,&lt;/li&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;web.config for IIS etc.,&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Note:&amp;nbsp;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;The file &amp;lt;RAILIS_LIB&amp;gt;/commands/server.rb act as a hub which will decides which server is going to serve for the specified web applications&lt;/li&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;You can refer the supported or available servers for the current rails version at &amp;lt;RAILIS_LIB&amp;gt;/commands/servers&lt;/li&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;In our case, RAILS_LIB in server is /usr/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
edit the file /etc/lighttpd/lighttpd.conf there you need to setup few of the server things&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;port&lt;/li&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;modules&lt;/li&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;error-handler-404&lt;/li&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;document-root&lt;/li&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;errorlog&lt;/li&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;accesslog.filename&lt;/li&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;url.rewrite&lt;/li&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;fastcgi server settings&lt;/li&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;mime type assignment&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
If you want any sample&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;b&gt;Ste2 : FastCGI Library &amp;amp; Gem installation:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
This step is entirely optional, but it will give you a performance boost, particularly when running larger Rails applications.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
First you need to install the&amp;nbsp;&lt;b&gt;fastcgi libraries&lt;/b&gt;:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cd /tmp&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; wget&amp;nbsp;&lt;a href=&quot;http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; tar -zxvf fcgi-2.4.0.tar.gz&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cd fcgi-2.4.0&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ./configure --prefix=/usr/local/fcgi --exec-prefix=/usr/local/fcgi&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; make&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; make install&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;b&gt;fcgi gem&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Now you can install the fcgi gem (this is a long command which your browser may line-wrap here -- beware that the command is all on the same line):&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; gem install fcgi -r -- --with-fcgi-lib=/usr/local/fcgi/lib --with-fcgi-include=/usr/local/fcgi/include&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;b&gt;Step3: Secure socked implementation&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Please refer the article which is located&amp;nbsp;http://kannannadarajan.blogspot.com/2012/03/why-https-and-what-is-ssl-certificate.html&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
There exists two certificates 1. Signed and 2. Self signed&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
First we will go with the self-signed certificate&amp;nbsp; then we will see the signed version in our next post.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;b&gt;Lets see the self-signed certificate creation in UNIX:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
This is done through the tool openssl, so check whether your unix environment supports the command openssl, otherwise you need to install it.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
[root@kannan ~]# openssl version&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
-bash: openssl: command not found&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
[root@kannan ~]# yum install openssl&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
In any case you can update openssl&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
[root@kannan ~]# yum update openssl&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
[root@kannan ~]# openssl version&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;b&gt;New certificate creation&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
[root@kannan ~]# openssl req -new &amp;gt; server.cert.csr&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
This is a certificate request command. This will ask few question and answer it accurately about you and your site as much as possible. The main thing is PEM pass phrase. you need to remember this and the system will ask to enter when the time of certificate and private key generation by the following command.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
[root@kannan ~]# openssl rsa -in privkey.pem -out server.cert.key&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Self sign process&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
This step will differentiates the ssl is whether signed or self signed.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
[root@kannan ~]# openssl x509 -in server.cert.csr -out server.cert.crt -req -signkey server.cert.key -days 365&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
The final feedback of the above command should be&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Signature ok&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
subject=/C=US/ST=California/O=MNK Inc.,/OU=IT/CN=kannan/emailAddress=kannan&lt;a href=&quot;mailto:andy@flexis.net&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;@mysite.net&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Getting Private key&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Now look at in your current directory there you can se three new files called:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
1. server.cert.csr&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
2. server.cert.crt =&amp;gt; this is certificate&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
3. server.cert.key =&amp;gt; this is private key&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
So, Certificate creation process is over. Now we need to tell lighttpd about this certificate.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;b&gt;Lighttpd: SSL configuration&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
create two new files files at /etc/lighttpd/kannan.net, note that kannan.net is a new directory&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
kannan.net.pem&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
kannan.net.crt&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
copy the contents from server.cert.crt&amp;nbsp; and server.cert.key to kannan.net.pem and copy then content from server.cert.key to kannan.net.crt&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
A small modification in the existing lighttpd.conf file will change everything. The modification is&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; 1. 443 is the default port for https so change it in lighttpd.conf&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; server.port = 443&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; 2. Dnable the ssl engine&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; ssl.engine = &quot;enable&quot;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; 3. certificate and private key file location setup&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; ssl.pemfile = &quot;/etc/lighttpd/kannan.net/kannan.net.pem&quot;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&amp;nbsp; ssl.ca-file = &quot;/etc/lighttpd/kannan.net/kannan.net.crt&quot;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Look at the attached modified lighttpd.conf which is named as lighttpd-omie_dev-ssl.conf&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Thats all. stop the existing lighttpd server if anything running&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
pkill -9 lighttpd&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Start the server&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
/usr/local/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Now your browser is ready to server https version of omie_dev just type&amp;nbsp;&lt;a href=&quot;https://a2.flexis.net/&quot; style=&quot;color: #0033cc; padding-bottom: 1px; padding-left: 1px; padding-right: 1px; padding-top: 1px;&quot;&gt;https://y&lt;/a&gt;oursite.com&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Look at your browser raises an alert that the certificate is invalid because it is self signed. If it is signed by any CA then this will not happens.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
If you want any clarification, please feel free to ask.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Thanks,&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Kannan&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/6247162568961146809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2012/03/lighttpd-with-fastcgi-for-ror-121.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/6247162568961146809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/6247162568961146809'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2012/03/lighttpd-with-fastcgi-for-ror-121.html' title='Lighttpd with fastCGI for ROR 1.2.1'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-2650472067587682459</id><published>2012-03-30T01:10:00.002-07:00</published><updated>2012-03-30T01:10:29.272-07:00</updated><title type='text'>Why HTTPS and What is SSL Certificate</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
I want to share few things about SSL/Https/signed/self-signed Certificates. This is right time to publish about my thoughts. Lets see why https instead of http:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
There are two primary differences between an HTTPS and an HTTP connection work:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;HTTPS encrypts the data sent and received with SSL, while HTTP sends it all as plain text&lt;/li&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;HTTPS connects on port 443, while HTTP is on port 80, Means 443 is the default port for https, so make sure whether the the port 443 is free.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
As I said above, HTTP sends the data collected over the Internet in plain text. This means that if you have a form asking for a credit card number, that credit card number can be intercepted by anyone with a packet sniffer. Since there are many free sniffer software tools, this could be anyone at all. By collecting credit card information over an HTTP (not HTTPS) connection, you are broadcasting that credit card information to the world. And the only way your customer will learn it was stolen is when it&#39;s maxed out by a thief.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
There exist two kind of certificates&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Signed (Provided by certificate authority like Verisign, Thawte etc., of-course you need to spend some amount&lt;/li&gt;
&lt;li style=&quot;font-size: 12px; line-height: 1.425em; list-style-type: square; margin-bottom: 0px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Self-signed (created using ssl tools like openssl)&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Both certificates will generate a site that cannot be read by third-parties. The data sent over an https connection or SSL, will be encrypted regardless of whether the certificate is signed or self-signed, then the next question in our mind might be&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
Why Pay a certificate authority (CA) for Signed certification? the answer is:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
A certificate authority tells your customers that this server information has been verified by a trusted source. The most commonly used Certificate Authority is Verisign. Depending upon which CA is used, the domain is verified and a certificate is issued. Verisign and other more trusted CAs will verify the existence of the business in question and the ownership of the domain to provide a bit more security that the site in question is legitimate.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
The problem with using a self-signed certificate is that nearly every Web browser checks that an https connection is signed by a recognized CA. If the connection is self-signed, this will be flagged as potentially risky and error messages will pop up encouraging your customers to not trust the site.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
When self signed SSL Certificate is ok&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
I don&#39;t believe that any site that needs a SSL certificate for customer-facing pages should use a self-signed certificate. I also don&#39;t think it&#39;s a good idea to use a self-signed certificate on any Web server that is live on the Internet. That is just asking for hackers to set up a man-in-the-middle or other hack on your server to try and trick people into providing information they shouldn&#39;t.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
The only time a self-signed cerificate should be used is for testing or development&amp;nbsp;&amp;nbsp;&lt;em&gt;behind a firewall&lt;/em&gt;. Such as our a kind of development environment. If it is production, we should go with signed SSL version&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;
If you want any clarification on this please feel free to contact me.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/2650472067587682459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2012/03/why-https-and-what-is-ssl-certificate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/2650472067587682459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/2650472067587682459'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2012/03/why-https-and-what-is-ssl-certificate.html' title='Why HTTPS and What is SSL Certificate'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7410610850385112976.post-7350166626403646529</id><published>2012-03-30T01:05:00.004-07:00</published><updated>2012-03-30T01:05:49.076-07:00</updated><title type='text'>Sample lighttpd conf file for ssl and non ssl</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;u&gt;&lt;b&gt;Non SSL&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Default configuration file for the lighttpd web server&lt;br /&gt;
# Start using ./script/server lighttpd&lt;br /&gt;
&lt;br /&gt;
server.port = 3000&lt;br /&gt;
server.name = &quot;localhost&quot;&lt;br /&gt;
server.modules &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = ( &quot;mod_rewrite&quot;, &quot;mod_accesslog&quot;) #, &quot;mod_fastcgi&quot; )&lt;br /&gt;
#server.error-handler-404 = &quot;/dispatch.fcgi&quot;&lt;br /&gt;
server.document-root &amp;nbsp; &amp;nbsp; = &quot;/home/myapp/&quot;&lt;br /&gt;
&lt;br /&gt;
server.errorlog &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &quot;/home/myapp/log/lighttpd.error.log&quot;&lt;br /&gt;
accesslog.filename &amp;nbsp; &amp;nbsp; &amp;nbsp; = &quot;/home/myapp/log/lighttpd.access.log&quot;&lt;br /&gt;
&lt;br /&gt;
url.rewrite &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= ( &quot;^/$&quot; =&amp;gt; &quot;index.html&quot;, &quot;^([^.]+)$&quot; =&amp;gt; &quot;$1.html&quot; )&lt;br /&gt;
#server.document-root = &quot;/home/myapp/&quot;&lt;br /&gt;
&lt;br /&gt;
# Change *-procs to 2 if you need to use Upload Progress or other tasks that&lt;br /&gt;
# *need* to execute a second request while the first is still pending.&lt;br /&gt;
&lt;br /&gt;
fastcgi.server = ( &quot;.fcgi&quot; =&amp;gt;&lt;br /&gt;
&amp;nbsp; ( &quot;localhost&quot; =&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; (&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;min-procs&quot; =&amp;gt; 10,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;max-procs&quot; =&amp;gt; 10,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;socket&quot; &amp;nbsp; &amp;nbsp;=&amp;gt; &quot;/home/myapp/tmp/sockets/fcgi.socket&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;bin-path&quot; &amp;nbsp;=&amp;gt; &quot;/home/myapp/public/dispatch.fcgi&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;bin-environment&quot; =&amp;gt; ( &quot;RAILS_ENV&quot; =&amp;gt; &quot;development&quot; )&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;br /&gt;
&amp;nbsp; )&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
mimetype.assign = ( &lt;br /&gt;
&amp;nbsp; &quot;.css&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &amp;nbsp;&quot;text/css&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.gif&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &amp;nbsp;&quot;image/gif&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.htm&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &amp;nbsp;&quot;text/html&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.html&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &amp;nbsp;&quot;text/html&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.jpeg&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &amp;nbsp;&quot;image/jpeg&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.jpg&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &amp;nbsp;&quot;image/jpeg&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.js&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &amp;nbsp;&quot;text/javascript&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.png&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &amp;nbsp;&quot;image/png&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.swf&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &amp;nbsp;&quot;application/x-shockwave-flash&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.txt&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &amp;nbsp;&quot;text/plain&quot;&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
# Making sure file uploads above 64k always work when using IE or Safari&lt;br /&gt;
# For more information, see http://trac.lighttpd.net/trac/ticket/360&lt;br /&gt;
$HTTP[&quot;useragent&quot;] =~ &quot;^(.*MSIE.*)|(.*AppleWebKit.*)$&quot; {&lt;br /&gt;
&amp;nbsp; server.max-keep-alive-requests = 0&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;SSL&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Default configuration file for the lighttpd web server&lt;br /&gt;
# Start using ./script/server lighttpd&lt;br /&gt;
&lt;br /&gt;
server.port = 443&lt;br /&gt;
&lt;br /&gt;
server.modules &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = ( &quot;mod_rewrite&quot;, &quot;mod_accesslog&quot;, &quot;mod_fastcgi&quot; )&lt;br /&gt;
server.error-handler-404 = &quot;/dispatch.fcgi&quot;&lt;br /&gt;
server.document-root = &quot;/home/myapp/public/&quot;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; ssl.engine = &quot;enable&quot;&lt;br /&gt;
&amp;nbsp; ssl.pemfile = &quot;/etc/lighttpd/kannan.net/kannan.net.pem&quot;&lt;br /&gt;
&amp;nbsp; ssl.ca-file = &quot;/etc/lighttpd/kannan.net/kannan.net.crt&quot;&lt;br /&gt;
&amp;nbsp; server.name = &quot;your side name.com&quot;&lt;br /&gt;
&amp;nbsp; server.errorlog = &quot;/home/myapp/log/lighttpd.error.log&quot;&lt;br /&gt;
&amp;nbsp; accesslog.filename = &quot;/home/myapp/log/lighttpd-ssl.access.log&quot;&lt;br /&gt;
&lt;br /&gt;
url.rewrite &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= ( &quot;^/$&quot; =&amp;gt; &quot;index.html&quot;, &quot;^([^.]+)$&quot; =&amp;gt; &quot;$1.html&quot; )&lt;br /&gt;
&lt;br /&gt;
# Change *-procs to 2 if you need to use Upload Progress or other tasks that&lt;br /&gt;
# *need* to execute a second request while the first is still pending.&lt;br /&gt;
fastcgi.server = ( &quot;.fcgi&quot; =&amp;gt;&lt;br /&gt;
&amp;nbsp; ( &quot;localhost&quot; =&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; (&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;min-procs&quot; =&amp;gt; 1,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;max-procs&quot; =&amp;gt; 1,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;socket&quot; &amp;nbsp; &amp;nbsp;=&amp;gt; &quot;/home/myapp/tmp/sockets/fcgi.socket&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;bin-path&quot; &amp;nbsp;=&amp;gt; &quot;/home/myapp/public/dispatch.fcgi&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;bin-environment&quot; =&amp;gt; ( &quot;RAILS_ENV&quot; =&amp;gt; &quot;development&quot; )&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;br /&gt;
&amp;nbsp; )&lt;br /&gt;
)&lt;br /&gt;
mimetype.assign = ( &lt;br /&gt;
&amp;nbsp; &quot;.css&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &amp;nbsp;&quot;text/css&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.gif&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &amp;nbsp;&quot;image/gif&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.htm&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &amp;nbsp;&quot;text/html&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.html&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &amp;nbsp;&quot;text/html&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.jpeg&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &amp;nbsp;&quot;image/jpeg&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.jpg&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &amp;nbsp;&quot;image/jpeg&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.js&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &amp;nbsp;&quot;text/javascript&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.png&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &amp;nbsp;&quot;image/png&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.swf&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &amp;nbsp;&quot;application/x-shockwave-flash&quot;,&lt;br /&gt;
&amp;nbsp; &quot;.txt&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &amp;nbsp;&quot;text/plain&quot;&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
# Making sure file uploads above 64k always work when using IE or Safari&lt;br /&gt;
# For more information, see http://trac.lighttpd.net/trac/ticket/360&lt;br /&gt;
$HTTP[&quot;useragent&quot;] =~ &quot;^(.*MSIE.*)|(.*AppleWebKit.*)$&quot; {&lt;br /&gt;
&amp;nbsp; server.max-keep-alive-requests = 0&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kannannadarajan.blogspot.com/feeds/7350166626403646529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kannannadarajan.blogspot.com/2012/03/sample-lighttpd-conf-file-for-ssl-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/7350166626403646529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7410610850385112976/posts/default/7350166626403646529'/><link rel='alternate' type='text/html' href='http://kannannadarajan.blogspot.com/2012/03/sample-lighttpd-conf-file-for-ssl-and.html' title='Sample lighttpd conf file for ssl and non ssl'/><author><name>The Great</name><uri>http://www.blogger.com/profile/08976673455169286419</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx5jurKK0vL1TDXAl0nMBXdisQujGkeHoLQvg_ylnjvzqVBH7_3qMAmdHpy2QyIGZFbOKk3FPsbLo5PUEPxlyQJkuEIL8mNAEEZive-B1JfIgMgJRbCAK2w8u9IrwL8A/s220/right-cut.png'/></author><thr:total>0</thr:total></entry></feed>