Skip to main content

Posts

Showing posts from March, 2012

Rails 1.2.1 with Ruby 1.8.x installation tips

ROR Setup (Ruby 1.8.6 , patch level 111, rails 1.2.1, CentOs 6.2 62 bit, Postgres 8.3) Make sure rpmforge included in your yum.repo ‘s, you can make it is available through cd /tmp/ wget  http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm rpm --import  http://apt.sw.be/RPM-GPG-KEY.dag.txt rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm Download and install ruby 1.8.6 cd /tm/ wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p111.tar.bz2 tar jxf ruby-1.8.6-p111.tar.bz2  cd ruby-1.8.6-p111 ./configure make Note: If you found any error like make gcc -g -O2  -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.  -c array.c gcc -g -O2  -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.  -c bignum.c gcc -g -O2  -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.  -c class.c gcc -g -O2  -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.  -c compar.c gcc -g -O2  -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. -I.  -c dir.c

Lighttpd with fastCGI for ROR 1.2.1

Lighttpd Installation: As of now (18-Feb-2011) the version 1.4.28 is the current version of lighttpd, which we need yo downloaded from  http://www.lighttpd.net/ tar -zxvf lighttpd-1.4.28.tar.gz cd lighttpd-1.4.28 ./configure ./configure --with-openssl 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: [root@kannan ~]# /usr/local/sbin/lighttpd -v lighttpd/1.4.28 (ssl) - a light and fast webserver Build-Date: Feb 17 2011 16:37:02 Then, note that there might be a new directory called /etc/lighttpd/ which will contains a default configuration file called "lighttpd.conf" This is the file which will contains the information about how  (ROR based) web application is going to act along with script/server. This file is same as webrick/config.rb  for Webricks, httpd.conf for Apche, web.config for IIS etc., Note:  The file <RAILIS_LIB&g

Why HTTPS and What is SSL Certificate

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: There are two primary differences between an HTTPS and an HTTP connection work: HTTPS encrypts the data sent and received with SSL, while HTTP sends it all as plain text 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. 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&#

Sample lighttpd conf file for ssl and non ssl

Non SSL # Default configuration file for the lighttpd web server # Start using ./script/server lighttpd server.port = 3000 server.name = "localhost" server.modules           = ( "mod_rewrite", "mod_accesslog") #, "mod_fastcgi" ) #server.error-handler-404 = "/dispatch.fcgi" server.document-root     = "/home/myapp/" server.errorlog          = "/home/myapp/log/lighttpd.error.log" accesslog.filename       = "/home/myapp/log/lighttpd.access.log" url.rewrite              = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" ) #server.document-root = "/home/myapp/" # Change *-procs to 2 if you need to use Upload Progress or other tasks that # *need* to execute a second request while the first is still pending. fastcgi.server = ( ".fcgi" =>   ( "localhost" =>       (         "min-procs" => 10,