<?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: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-4626852300956927654</id><updated>2012-01-29T07:02:01.071-08:00</updated><title type='text'>Linux Administration</title><subtitle type='html'>Make it Simple .!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>68</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-975983229390756689</id><published>2012-01-11T01:08:00.000-08:00</published><updated>2012-01-11T01:08:32.691-08:00</updated><title type='text'>Benchmarking with Frameworks.</title><summary type='text'>Framework for Development. 

Ruby:
1.Ruby on Rails is on the TOP.

PHP: 
2.FuelPHP fuelphp.com for the perfect mixture of CI, Kohana, Rails and others. 


If you check following URL: 

http://ilikekillnerds.com/2011/04/codeigniter-vs-fuelphp

http://www.reddit.com/r/webdev/comments/fmy6i/why_is_fuelphp_better_than_codeigniter/

http://www.beyondcoding.com/2008/05/26/</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/975983229390756689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=975983229390756689' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/975983229390756689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/975983229390756689'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2012/01/benchmarking-with-frameworks.html' title='Benchmarking with Frameworks.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-7319651964982698305</id><published>2012-01-03T03:51:00.000-08:00</published><updated>2012-01-03T03:51:14.122-08:00</updated><title type='text'>SMTP check script in ruby.</title><summary type='text'>Create ruby script to check SMTP with login credential. 
You can test two authentication in this script i.e. plain and login.

vi     /opt/rubymailtest.rb


require 'net/smtp'

message = &lt;
From: info@homework.do
To: sbtoalerts@gmail.com
Subject: test message
Date: Sat, 23 Jun 2001 16:26:43 +0900

This is a test message.
END_OF_MESSAGE


#Net::SMTP.start('mail.exmaple.com') do |smtp|
#  </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/7319651964982698305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=7319651964982698305' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/7319651964982698305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/7319651964982698305'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2012/01/smtp-check-script-in-ruby.html' title='SMTP check script in ruby.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-5023206805672243213</id><published>2011-10-11T03:10:00.000-07:00</published><updated>2011-10-11T03:10:29.813-07:00</updated><title type='text'>Remove extra spaces from file in linux.</title><summary type='text'>If you found spaces and non-ASCII characters with in files, remove all  from a file in place. 

Solution is: 
perl -i.bak -pe 's/[^[:ascii:]]//g' filename 


Thanks-</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/5023206805672243213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=5023206805672243213' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/5023206805672243213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/5023206805672243213'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/10/remove-extra-spaces-from-file-in-linux.html' title='Remove extra spaces from file in linux.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-397448665879911900</id><published>2011-09-28T23:16:00.000-07:00</published><updated>2011-10-10T03:12:37.094-07:00</updated><title type='text'>My New Writeup.</title><summary type='text'>I am not good writer, still i am writing things which is need to me and people who find needful for them.  

This is my another Tech Blog. I hope its useful for all of us. 

Please visit: http://linux-fundamentals.blogspot.com/ 


Thanks-

</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/397448665879911900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=397448665879911900' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/397448665879911900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/397448665879911900'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/06/my-new-writeup.html' title='My New Writeup.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-5498483156773226437</id><published>2011-09-27T22:36:00.000-07:00</published><updated>2011-09-27T22:36:54.416-07:00</updated><title type='text'>Shell Script To Monitor Mysql.</title><summary type='text'>[root@ 17_johnson]# cat /usr/bin/monitor-mysql
#!/bin/bash

# mysql root/admin username
MUSER="root"
# mysql admin/root password
MPASS="im#secure"
# mysql server hostname
MHOST="localhost"
#Shell script to start MySQL server i.e. path to MySQL daemon start/stop script.
# Debain uses following script, need to setup this according to your UNIX/Linux/BSD OS.
MSTART="/etc/init.d/mysqld start"
# Email</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/5498483156773226437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=5498483156773226437' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/5498483156773226437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/5498483156773226437'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/09/shell-script-to-monitor-mysql.html' title='Shell Script To Monitor Mysql.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-3067243907235636980</id><published>2011-09-24T22:31:00.000-07:00</published><updated>2011-09-27T22:46:16.374-07:00</updated><title type='text'>Script To Check Disk Usage and Send Alert URGENT/WARNING.</title><summary type='text'>[root@ 17_johnson]# cat /usr/bin/DiskUsage

#!/bin/bash


#filesystems="/dev/sda1 /dev/sda2 /dev/sda5"
filesystems="/data /log  /app  /backup  /home  /"

for fs in $filesystems
do

size=`df -k  $fs |grep $fs |awk '{ print  $3 }'`

        if [  $size  -le  2500000 ]  ;then
#                mail -b "URGENT: Low disk space for $fs ($size)"
 echo  "$fs ($size) URGENT" | mail -s "Alert: Disk Usage </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/3067243907235636980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=3067243907235636980' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/3067243907235636980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/3067243907235636980'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/09/script-to-check-disk-usage-and-send.html' title='Script To Check Disk Usage and Send Alert URGENT/WARNING.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-4959229008065292465</id><published>2011-09-23T22:29:00.000-07:00</published><updated>2011-09-27T22:45:55.583-07:00</updated><title type='text'>Shell script to taking MySql Dump/Backup.</title><summary type='text'>[root@17_johnson]# cat /usr/bin/mybackupsql

#!/bin/bash
# USER VARIABLES
TIMESTAMP=$(date +%Y-%m-%d)
MYSQLUSER=root
MYSQLPWD=im#secure
MYSQLHOST=localhost
# PATH VARIABLES
MK=/bin/mkdir
GREP=/bin/grep
MYSQL=/usr/bin/mysql
MYSQLDUMP=/usr/bin/mysqldump
# CREATE MYSQL BACKUP
# Create new backup dir
$MK /backup/mysqlback_$TIMESTAMP
#Dump new files
for i in $(echo 'SHOW DATABASES;' | $MYSQL -u$</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/4959229008065292465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=4959229008065292465' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4959229008065292465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4959229008065292465'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/09/shell-script-to-taking-mysql-dumpbackup.html' title='Shell script to taking MySql Dump/Backup.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-4064412574923710318</id><published>2011-09-22T22:26:00.000-07:00</published><updated>2011-09-27T22:45:17.292-07:00</updated><title type='text'>MysqlDump with Exclude database or perticuler table Options.</title><summary type='text'>[root@linux_johnson]# cat /usr/bin/imdbbackup
#!/bin/bash
# USER VARIABLES
TIMESTAMP=$(date +%Y-%m-%d)
MYSQLUSER=root
MYSQLPWD=im#secure
MYSQLHOST=localhost
# PATH VARIABLES
MK=/bin/mkdir
GREP=/bin/grep
MYSQL=/usr/bin/mysql
MYSQLDUMP=/usr/bin/mysqldump
# CREATE MYSQL BACKUP
# Create new backup dir
$MK /backup/mysqlback_$TIMESTAMP
#Dump new files
DBname=db_production


for i in $(echo 'SHOW </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/4064412574923710318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=4064412574923710318' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4064412574923710318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4064412574923710318'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/09/mysqldump-with-exclude-database-or.html' title='MysqlDump with Exclude database or perticuler table Options.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-1015189486115493208</id><published>2011-09-21T22:40:00.000-07:00</published><updated>2011-09-27T22:44:33.443-07:00</updated><title type='text'>How To Clear Active record base Sessions.</title><summary type='text'>[root@17_johnson]# cat current/lib/clear_sessions_data.rb

  require 'rubygems'
  require 'active_record'


  ActiveRecord::Base.establish_connection(
  :adapter =&gt; "mysql",
  :host =&gt; "localhost",
  :username =&gt; "root",
  :password =&gt;"tm#secure",
  :database =&gt; "tm_production",
  :socket =&gt;  "/var/lib/mysql/mysql.sock"
  )

  
  sql = 'DELETE FROM sessions WHERE updated_at &lt; DATE_SUB(NOW(), </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/1015189486115493208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=1015189486115493208' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1015189486115493208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1015189486115493208'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/09/how-to-clear-active-record-base.html' title='How To Clear Active record base Sessions.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-4768228533281224031</id><published>2011-09-20T23:31:00.000-07:00</published><updated>2011-09-20T23:31:38.499-07:00</updated><title type='text'>To check exact PID of running process in linux.</title><summary type='text'>To check exact PID of process.
Command: 
ps -efa  |  grep httpd | grep -v grep | awk '{print $2}'

-----------------------------------------------------------------------------------------
#! /bin/bash 

PROCNAME=$1
PIDS=`ps -efa | grep $PROCNAME | grep -v grep | awk '{ print $2 }'`
for ff in $PIDS
do
echo "$ff"
done
--------------------------------------------------------------------------------</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/4768228533281224031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=4768228533281224031' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4768228533281224031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4768228533281224031'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/09/to-check-exact-pid-of-running-process.html' title='To check exact PID of running process in linux.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-2042435122708859609</id><published>2011-09-13T23:55:00.000-07:00</published><updated>2011-09-13T23:55:17.675-07:00</updated><title type='text'>Last_IO_Error: error connecting to master 'repl@12.18.46.78:3666' - retry-time: 10  retries: 86400</title><summary type='text'>This error you get when you check " show slave status\G;"

Solution as follows: 
Do Telnet: 

[root@sj ~]# telnet 12.18.46.78 3666
Trying 12.18.46.78...
Connected to 12.18.46.78.
Escape character is '^]'.
uHost '12.18.46.78' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'Connection closed by foreign host.

Do Flush host: 

[root@sj ~]# mysqladmin -uroot -</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/2042435122708859609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=2042435122708859609' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2042435122708859609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2042435122708859609'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/09/lastioerror-error-connecting-to-master.html' title='Last_IO_Error: error connecting to master &apos;repl@12.18.46.78:3666&apos; - retry-time: 10  retries: 86400'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-1280966721121032007</id><published>2011-08-24T03:44:00.000-07:00</published><updated>2011-08-24T05:10:34.279-07:00</updated><title type='text'>start-stop-daemon script for Centos 5.!</title><summary type='text'> wget http://developer.axis.com/download/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz

tar -xvf apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz
cd apps
cd sys-utils/start-stop-daemon-IR1_9_18-2/

cat Makefile
---------------------------------------------
# comment this Two line for centos build. 
#AXIS_USABLE_LIBS = GLIBC UCLIBC 
#include $(AXIS_TOP_DIR)/tools/build/</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/1280966721121032007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=1280966721121032007' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1280966721121032007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1280966721121032007'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/08/start-stop-daemon-script-for-centos-5.html' title='start-stop-daemon script for Centos 5.!'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-4853518736829276480</id><published>2011-06-20T00:49:00.000-07:00</published><updated>2011-06-20T00:49:24.883-07:00</updated><title type='text'>Add Branch to Git.</title><summary type='text'>-------------------------------------------------------- 
vi  /usr/bin/addbranch   &lt;---Create the file with name, and copy the following code.

#!/bin/bash
# git-create-branch 

if [ $# -ne 1 ]; then
         echo 1&gt;&amp;2 Usage: $0 branch_name
         exit 127
fi

set branch_name = $1
#git push origin origin:refs/heads/${branch_name}
#git fetch origin
git checkout --track -b ${branch_name} origin/$</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/4853518736829276480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=4853518736829276480' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4853518736829276480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4853518736829276480'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/06/add-branch-to-git.html' title='Add Branch to Git.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-3455283395967279869</id><published>2011-05-30T02:34:00.000-07:00</published><updated>2011-05-30T02:34:03.959-07:00</updated><title type='text'>Find Command in Linux With Options.</title><summary type='text'>If you find root only 
find /. -size +100M

-size n[cwbkMG]
              File uses n units of space.  The following suffixes can be used:

              ‘b’    for 512-byte blocks (this is the default if no suffix is used)

              ‘c’    for bytes

              ‘w’    for two-byte words

              ‘k’    for Kilobytes (units of 1024 bytes)

              ‘M’    for Megabytes (units </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/3455283395967279869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=3455283395967279869' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/3455283395967279869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/3455283395967279869'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/05/find-command-in-linux-with-options.html' title='Find Command in Linux With Options.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-6581536071920957632</id><published>2011-05-23T06:29:00.000-07:00</published><updated>2011-05-23T06:29:12.382-07:00</updated><title type='text'>ERROR 2003 (HY000): Can't connect to MySQL server on '10.677.32.43' (111)</title><summary type='text'>root@124:/etc# mysql  -uroot -priva#secure  -h10.677.32.43
ERROR 2003 (HY000): Can't connect to MySQL server on '10.677.32.43' (111)

If you go this error. Check your /etc/my.cnf ( for centos), /etc/mysql/my.cnf ( for ubuntu) 

Comment this two line.

#skip-external-locking

#bind-address           = 127.0.0.1

Restart Mysql. Now you should able to connnect remotely.</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/6581536071920957632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=6581536071920957632' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/6581536071920957632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/6581536071920957632'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/05/error-2003-hy000-cant-connect-to-mysql.html' title='ERROR 2003 (HY000): Can&apos;t connect to MySQL server on &apos;10.677.32.43&apos; (111)'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-375636256376034154</id><published>2011-05-03T06:43:00.000-07:00</published><updated>2011-05-04T00:24:07.796-07:00</updated><title type='text'>Security for Linux Server.</title><summary type='text'>All the Security for Linux Server.

1. Firewall APF/Iptables 
   * Block the all ports which is unnecessary open on server. 
   * There is Spammer Database will be add IP pool  in firewall.
2. Change SSH port 
3. Update and scans for rootkits, backdoor and possible local exploits.  wrong permissions for /usr/bin and     system commands, hidden files,  suspicious strings in kernel modules, and </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/375636256376034154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=375636256376034154' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/375636256376034154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/375636256376034154'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/05/security-for-linux-server.html' title='Security for Linux Server.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-5800985385939524812</id><published>2011-04-20T07:21:00.000-07:00</published><updated>2011-04-20T07:21:13.212-07:00</updated><title type='text'>Can't umount on RHEL/CENTOS Error: device is busy</title><summary type='text'>[root@sandbox1 ~]# umount /dev/sdb1
umount: /mnt/pen: device is busy
umount: /mnt/pen: device is busy

Solution :

[root@sandbox1 ~]# lsof | grep /mnt/pen
esd       23711   root  cwd       DIR       8,17      4096    1228794 /mnt/pen/720p BRRip x264 - HDMiCRO by Mr. KickASS
esd       23711   root    3r      REG       8,17 942758269    1229005 /mnt/pen/ - HDMiCRO by Mr. KickASS/ Mr. KickASS.mp4

[</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/5800985385939524812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=5800985385939524812' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/5800985385939524812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/5800985385939524812'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/04/cant-umount-on-rhelcentos-error-device.html' title='Can&apos;t umount on RHEL/CENTOS Error: device is busy'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-9222333602898133719</id><published>2011-04-13T00:16:00.000-07:00</published><updated>2011-04-13T00:16:39.843-07:00</updated><title type='text'>/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory</title><summary type='text'>While compiling any sources in linux if you got above Error.
----------------------------------------------------
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[2]: *** [boot.o] Error 1
make[2]: Leaving directory `/mnt/resin-4.0.16/modules/c/src/resin_os'
make[1]: *** [plugins] Error 2
make[1]: Leaving directory `/mnt/resin-4.0.16/modules/c/src'
make: *** [</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/9222333602898133719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=9222333602898133719' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/9222333602898133719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/9222333602898133719'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/04/usrincludegnustubsh727-error-gnustubs.html' title='/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-2427439784723617153</id><published>2011-04-08T00:43:00.000-07:00</published><updated>2011-04-08T00:43:12.375-07:00</updated><title type='text'>postfix/postdrop warning: uid=48: Illegal seek postfix/sendmail: fatal: (48): queue file write error</title><summary type='text'>If you got the error. And you are not able to send large size/ mail attachment from postfix please do above config.

postfix/postdrop warning: uid=48: Illegal seek 
postfix/sendmail: fatal: (48): queue file write error

Edit the postfix mailserver file:
vi /etc/postfix/main.cf  
Change/Add this option to  send large file size.

message_size_limit = 100000000 
mailbox_size_limit = 800000000
</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/2427439784723617153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=2427439784723617153' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2427439784723617153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2427439784723617153'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/04/postfixpostdrop-warning-uid48-illegal.html' title='postfix/postdrop warning: uid=48: Illegal seek postfix/sendmail: fatal: (48): queue file write error'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-7534594882678065467</id><published>2011-04-05T07:13:00.000-07:00</published><updated>2011-04-05T07:13:47.249-07:00</updated><title type='text'>[On Ubuntu Mod_proxy added to apache2] BalancerMember Can't find 'byrequests' lb method</title><summary type='text'>Mod_proxy added to apache2. 

apt-get install libapache2-mod-proxy-html
 
apt-get install libxml2-dev

Add following lines to /etc/apache2/apache2.conf :


LoadModule  proxy_module         /usr/lib/apache2/modules/mod_proxy.so
LoadModule  proxy_http_module    /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule  headers_module       /usr/lib/apache2/modules/mod_headers.so
LoadModule  </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/7534594882678065467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=7534594882678065467' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/7534594882678065467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/7534594882678065467'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/04/on-ubuntu-modproxy-added-to-apache2.html' title='[On Ubuntu Mod_proxy added to apache2] BalancerMember Can&apos;t find &apos;byrequests&apos; lb method'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-6293723483888637819</id><published>2011-04-01T04:19:00.001-07:00</published><updated>2011-04-01T04:19:58.953-07:00</updated><title type='text'>Compare two file and find diff between two file in sort form.</title><summary type='text'>Compare two file and find diff between two file in sort form.

It will list both file content and diff.
sdiff -s File1 File2

It will do Sort and showing complete diff.

grep -vf File2 File1</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/6293723483888637819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=6293723483888637819' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/6293723483888637819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/6293723483888637819'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/04/compare-two-file-and-find-diff-between.html' title='Compare two file and find diff between two file in sort form.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-8676301901355285265</id><published>2011-03-14T02:23:00.000-07:00</published><updated>2011-03-14T02:23:46.064-07:00</updated><title type='text'>Permission denied: /.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable</title><summary type='text'>If you got error with passenger +httpd Please check a log and change permission as follows. its just permission issue.

------------------------------------------------------------------------------
 tail -f /var/log/httpd/error_log
[Mon Mar 14 02:16:36 2011] [crit] [client 125.18.56.179] (13)Permission denied: /home/user/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/8676301901355285265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=8676301901355285265' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/8676301901355285265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/8676301901355285265'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/03/permission-denied-htaccess-pcfgopenfile.html' title='Permission denied: /.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-3708498671228334623</id><published>2011-02-21T02:20:00.001-08:00</published><updated>2011-02-21T02:20:34.936-08:00</updated><title type='text'>Master-Master Replication</title><summary type='text'>Master-Master Replication
Master1 - 1.1.1.1
Master3 - 2.2.2.2


Master1
Edit /etc/my.cnf 

#Primary Master server 
server-id=1
auto_increment_offset=1
# total number of master servers
auto_increment_increment=2
# local slave replication options
# remote master replication options
master-host=2.2.2.2
master-port=3306
master-user=repl
master-password=replpass
master-connect-retry=10

Master3 
#</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/3708498671228334623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=3708498671228334623' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/3708498671228334623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/3708498671228334623'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/02/master-master-replication.html' title='Master-Master Replication'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-3270068346031763597</id><published>2011-02-15T22:42:00.000-08:00</published><updated>2011-03-21T23:26:38.968-07:00</updated><title type='text'>Production Server/Mailserver Maintanace.</title><summary type='text'>At first, allocate enough space for log partition. Linux system having default log rotation if you want to change you can do customize log rotation automatically.







See here maillog in GB, if no need just clear old log.
Log rotate.

drwxr-xr-x 2 root  root  4.0K Dec  8  2009 mail
-rw------- 1 root  root  504M Feb 15 00:49 maillog
-rw------- 1 root  root  1.1G Feb 10 02:37 maillog.1
-rw------</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/3270068346031763597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=3270068346031763597' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/3270068346031763597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/3270068346031763597'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/02/production-servermailserver-maintanace.html' title='Production Server/Mailserver Maintanace.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-4554149918455764074</id><published>2011-02-01T07:16:00.000-08:00</published><updated>2011-02-01T10:53:01.315-08:00</updated><title type='text'>Mysql Won't start (two instance on same server)</title><summary type='text'>A Solution: 

Install mysql db again at new location,use following command:
 
/usr/bin/mysqld_safe --defaults-file /etc/my.cnf 

Restart Mysql: 
     /etc/init.d/mysqld restart

/usr/local/bin/mysqld_safe --defaults-file /usr/local/etc/my.cnf
  
mysql_install_db --user=mysql --ldata=/new-data-location
mysqld_safe --datadir=/new-data-location --user=mysql &amp; 

/usr/local/mysql/share/mysql/</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/4554149918455764074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=4554149918455764074' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4554149918455764074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4554149918455764074'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/02/mysql-wont-start.html' title='Mysql Won&apos;t start (two instance on same server)'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-4561995187907044538</id><published>2011-01-24T05:30:00.000-08:00</published><updated>2011-01-24T05:30:47.297-08:00</updated><title type='text'>/usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status make: *** [blib/arch/auto/Image/Magick/Magick.so] Error 1</title><summary type='text'>Normally this error occurs when install ImageMagick on Ubuntu Linux.
-------------------------------------------------------------------------------
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Image/Magick/Magick.so] Error 1
---------------------------------------------------------------------------------

And Solution is : Its need this package.
</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/4561995187907044538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=4561995187907044538' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4561995187907044538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4561995187907044538'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/01/usrbinld-cannot-find-lperl-collect2-ld.html' title='/usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status make: *** [blib/arch/auto/Image/Magick/Magick.so] Error 1'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-6516741785371613906</id><published>2011-01-03T03:27:00.000-08:00</published><updated>2011-04-25T05:58:49.063-07:00</updated><title type='text'>[semaphores] No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed</title><summary type='text'>Apache haveing issue with.. semaphores many time. Solution as follow to remove 
semaphores from apache.

Command to remove semaphores from apache: 

ipcs -s | grep apache | perl -e 'while () { @a=split(/\s+/); print `ipcrm sem $a[1]`}'

Thanks-</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/6516741785371613906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=6516741785371613906' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/6516741785371613906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/6516741785371613906'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2011/01/semaphores-no-space-left-on-device.html' title='[semaphores] No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-7199556120075762315</id><published>2010-12-28T01:21:00.000-08:00</published><updated>2011-04-07T06:27:40.853-07:00</updated><title type='text'>[Exception_notification For RAILS3 ] git://github.com/rails/exception_notification.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError) [RESOLVED]</title><summary type='text'>[Exception_notification For RAILS3 ] git://github.com/rails/exception_notification.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError) [RESOLVED]

# Add to Gemfile

gem 'exception_notification', :git =&gt; "http://github.com/rails/exception_notification.git", :require =&gt; 'exception_notifier'

# Add following to config/application.rb or  config/initializers/</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/7199556120075762315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=7199556120075762315' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/7199556120075762315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/7199556120075762315'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/12/exceptionnotification-for-rails3.html' title='[Exception_notification For RAILS3 ] git://github.com/rails/exception_notification.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError) [RESOLVED]'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-1428558941071135235</id><published>2010-12-27T01:18:00.000-08:00</published><updated>2010-12-27T21:55:16.607-08:00</updated><title type='text'>[Sinatra] `union': can't convert Array into String (TypeError)  [Resolved]</title><summary type='text'>For The Issue Please Do Following Stapes.

First uninstall gem Rack with all version.

# gem uninstall rack
Select gem to uninstall:
 1. rack-1.0.0
 2. rack-1.0.1
 3. rack-1.2.1
 4. All versions
&gt; 4
Successfully uninstalled rack-1.0.0
Successfully uninstalled rack-1.0.1

You have requested to uninstall the gem:
        rack-1.2.1
thin-1.2.7 depends on [rack (&gt;= 1.0.0)]
sinatra-1.1.2 depends on [</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/1428558941071135235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=1428558941071135235' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1428558941071135235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1428558941071135235'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/12/union-cant-convert-array-into-string.html' title='[Sinatra] `union&apos;: can&apos;t convert Array into String (TypeError)  [Resolved]'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-7251313550234669228</id><published>2010-10-26T01:13:00.001-07:00</published><updated>2010-10-26T01:13:50.115-07:00</updated><title type='text'>Phusion Passenger Optimization.</title><summary type='text'>If you faceing same as following issue.
Exception NameError in PhusionPassenger::Rack::ApplicationSpawner (uninitialized constant MongoMapper)

Please do the settings. It will really help you. 
Also, check your Database Query and cusumption of Memroy on server. 
---------------------------------------------
http {
     ..
     PassengerMaxPoolSize 3
     keepalive_timeout  120; 
-----------------</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/7251313550234669228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=7251313550234669228' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/7251313550234669228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/7251313550234669228'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/10/phusion-passenger-optimization.html' title='Phusion Passenger Optimization.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-2698134373619056438</id><published>2010-10-25T01:44:00.000-07:00</published><updated>2010-10-25T02:11:22.142-07:00</updated><title type='text'>[RSOLVED] [Rails Crontab Not Running]`bin_path': can 't find executable rake for Cronjob not running</title><summary type='text'>Hey Guys,

I have issue with some ruby script and rails, rake script not running as cronjob,
so you can use the following solution. 

=============================================
[root@localhost  ] vi /usr/bin/railscron
#! /bin/bash

cd /app/production/current/

PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin/

/usr/local/bin/rake  user:details RAILS_ENV=</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/2698134373619056438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=2698134373619056438' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2698134373619056438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2698134373619056438'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/10/rsolved-rails-crontab-not.html' title='[RSOLVED] [Rails Crontab Not Running]`bin_path&apos;: can &apos;t find executable rake for Cronjob not running'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-505584430557909451</id><published>2010-10-19T03:59:00.000-07:00</published><updated>2010-10-19T03:59:21.386-07:00</updated><title type='text'>ActionController::RoutingError No route matches .html</title><summary type='text'>Added extra .html to URL in rails.

If you have added following rewiterules in apache configuration Or added in your .htaccess in your public. Basically its required for the FastCGI. if you run fastCGI server then its need, but if you running Passenger 
should be remove 
--------------------------------------- 
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/505584430557909451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=505584430557909451' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/505584430557909451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/505584430557909451'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/10/actioncontrollerroutingerror-no-route.html' title='ActionController::RoutingError No route matches .html'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-6515819161748317070</id><published>2010-09-28T11:30:00.000-07:00</published><updated>2010-09-28T11:30:32.336-07:00</updated><title type='text'>Background Jobs In Rails.</title><summary type='text'>Well, We all know the Rails Deployment  if, not please read my some older post it will really help you
for that.
  Here what i am discussing it is also part of Administration/Deployment. Yes, I am Talking about Background Process. For the Rails application there is way, to run the background task with different ways i.e. as follows.   

BackgroundDrb
Delayed Job
Background Job{aka BJ}
</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/6515819161748317070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=6515819161748317070' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/6515819161748317070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/6515819161748317070'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/09/background-jobs-in-rails.html' title='Background Jobs In Rails.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-7429886486513216330</id><published>2010-08-23T03:30:00.000-07:00</published><updated>2010-08-23T03:30:40.952-07:00</updated><title type='text'>[PHP+FPM+NGINX] Installtion/Compilation/Confiuration.</title><summary type='text'>Its  Installtion/Compilation/Confiuration of PHP+FPM+NGINX.

Please Follow The Steps One By One, Its Working Configration Tested By Me :0). IF The Any Issue Please Contact Me.

wget http://museum.php.net/php5/php-5.2.8.tar.gz
tar -xvf php-5.2.8.tar.gz
cd php-5.2.8
=========================================
./configure  --enable-fastcgi --enable-fpm --with-mcrypt --with-zlib --enable-mbstring  --</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/7429886486513216330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=7429886486513216330' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/7429886486513216330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/7429886486513216330'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/08/phpfpmnginx-installtioncompilationconfi.html' title='[PHP+FPM+NGINX] Installtion/Compilation/Confiuration.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-2147415578041283517</id><published>2010-07-21T05:49:00.000-07:00</published><updated>2010-07-24T06:28:17.671-07:00</updated><title type='text'>How to password protect  PHP/Wordpress with htpasswd.</title><summary type='text'>First Create .htpasswd file.

htpasswd -c  /opt/app/.htpasswd admin
New password:
Re-type new password: 

After that you can add .htaccess in  your application.

vi /opt/app/.htaccess 

AuthUserFile /opt/app/.htpasswd
AuthGroupFile /dev/null
AuthName admin
AuthType Basic
require valid-user</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/2147415578041283517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=2147415578041283517' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2147415578041283517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2147415578041283517'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/07/how-to-password-protect-wordpress-blog.html' title='How to password protect  PHP/Wordpress with htpasswd.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-7592473468829899356</id><published>2010-06-30T11:50:00.000-07:00</published><updated>2010-06-30T11:53:14.804-07:00</updated><title type='text'>Server Monitoring with Serverstat</title><summary type='text'>This is Popular and real time monitoring tool. mostly it used for webhosting server. It is Alarming system too.
Please check with this image. i have configure monitoring for some major services. e.g. Httpd-MySql-Ftp, you can add any ports and whatever you wants no limit.
So when its stoped or some services down it showing you red signal immediately with  sound alarm/alerts.
Also it gives you </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/7592473468829899356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=7592473468829899356' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/7592473468829899356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/7592473468829899356'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/06/server-monitoring-with-serverstat.html' title='Server Monitoring with Serverstat'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_O0XzG4DUlO4/TCuOsN9LOLI/AAAAAAAABk4/hDv3MNpihCU/s72-c/serverstatpics.bmp' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-4564171216027525044</id><published>2010-06-24T22:17:00.000-07:00</published><updated>2010-06-24T22:19:52.406-07:00</updated><title type='text'>Check Mysql Master-Slave Replication Script.</title><summary type='text'>This is Mysql Master-Slave Replication Script which is checking position of log. you can set as cron and run.

vi /usr/bin/scriptname

#! /bin/bash
#
# Will Run on LOCAL LAN ON EC2 CLUSTER

SLAVE_HOST=1.2.2.1
SLAVE_PASS=passwd
SLAVE_USER=root

MASTER_PASS=passwd
MASTER_USER=root
MASTER_HOST=1.2.4.2

master_pos=`/usr/local/mysql/bin/mysql  -u$SLAVE_USER -p$SLAVE_PASS -h$SLAVE_HOST -e 'show slave </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/4564171216027525044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=4564171216027525044' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4564171216027525044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4564171216027525044'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/06/mysql-master-slave-replication-script.html' title='Check Mysql Master-Slave Replication Script.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-4271318720395955398</id><published>2010-06-08T00:13:00.000-07:00</published><updated>2010-06-08T00:13:09.612-07:00</updated><title type='text'>/usr/libexec/mysqld: Can't change dir to '/data/mysql/' (Errcode: 13) [Resolved]</title><summary type='text'>If you want's to change mysql default data directory or apart of /var/lib/mysql and for this setting you are facing this type of issue: 
========================================================================
/usr/libexec/mysqld: Can't change dir to '/data/mysql/' (Errcode: 13)
100607 16:57:44 [ERROR] Aborting

100607 16:57:44 [Note] /usr/libexec/mysqld: Shutdown complete

100607 16:57:44  </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/4271318720395955398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=4271318720395955398' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4271318720395955398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4271318720395955398'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/06/usrlibexecmysqld-cant-change-dir-to.html' title='/usr/libexec/mysqld: Can&apos;t change dir to &apos;/data/mysql/&apos; (Errcode: 13) [Resolved]'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-7494738792616081837</id><published>2010-05-13T23:16:00.000-07:00</published><updated>2010-05-13T23:16:06.683-07:00</updated><title type='text'>PHP+FPM Compilation on Centos 5</title><summary type='text'>Requirement:
yum install libmcrypt
yum install libmcrypt-devel

./configure --enable-fastcgi --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --disable-pdo  --with-curl --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-xml --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-xslt --</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/7494738792616081837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=7494738792616081837' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/7494738792616081837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/7494738792616081837'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/05/phpfpm-compilation-on-centos-5.html' title='PHP+FPM Compilation on Centos 5'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-3744875083479229661</id><published>2010-04-30T06:42:00.000-07:00</published><updated>2010-04-30T06:42:10.876-07:00</updated><title type='text'>UDP Protocol Used For Digital Signage.!</title><summary type='text'>I have tested both protocol, both are UDP based and faster download.
Available in interactive mode.  

http://tsunami-udp.sourceforge.net/

http://fsp.sourceforge.net/</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/3744875083479229661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=3744875083479229661' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/3744875083479229661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/3744875083479229661'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/04/udp-protocol-used-for-digital-signage.html' title='UDP Protocol Used For Digital Signage.!'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-1203227249554962027</id><published>2010-04-15T01:06:00.000-07:00</published><updated>2010-04-15T01:09:10.337-07:00</updated><title type='text'>Configure staging environment for Phusion Passenger.!</title><summary type='text'>Please follow step-by-step success is your's : LOL

Copy production.rb to staging.rb in config/environments
cd /app/config/environments/
cp production.rb staging.rb

Add a staging entry to your config/database.yml
Your database.yml is should like this :

staging:
adapter: mysql
reconnect: false
database: databae_staging
username: root
password: password
host: localhost
socket: /var/lib/mysql/</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/1203227249554962027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=1203227249554962027' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1203227249554962027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1203227249554962027'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/04/configure-staging-environment-for.html' title='Configure staging environment for Phusion Passenger.!'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-727677591469293746</id><published>2010-04-11T23:48:00.000-07:00</published><updated>2010-04-11T23:48:27.736-07:00</updated><title type='text'>shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory</title><summary type='text'>Hey Guys,

If you facing issue " shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory " for restarting service whaterver mysql,httpd,etc,

just do "cd or cd / " on console 

it will resolved.

[root@domU-taging]# /etc/init.d/mysqld restart
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/727677591469293746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=727677591469293746' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/727677591469293746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/727677591469293746'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/04/shell-init-error-retrieving-current.html' title='shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-5373799932090469630</id><published>2010-01-12T01:34:00.000-08:00</published><updated>2010-01-12T01:36:09.610-08:00</updated><title type='text'>Ruby on Rails Deployment With Open Source Technology.</title><summary type='text'>What We Need ? and What We Recommended. Ingredient For Deployment Recipes.Linux: CentOs 5x (Recommended).Kernel 2.6.x Flavor of any linux, Ubuntu, Gentoo , Or OpenSolaris.WebServer: Apache(Httpd) Or Nginx (Recommended Stable)Database : Mysql (Recommended Stable)ImageMagick:  6.5.8-10 (Recommended Use Latest Version)Ruby : 1.9.1 (Recommended Latest and Stable)RubyGems : 1.3.5 (Recommended Latest </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/5373799932090469630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=5373799932090469630' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/5373799932090469630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/5373799932090469630'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2010/01/ruby-on-rails-deployment-with-open.html' title='Ruby on Rails Deployment With Open Source Technology.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-2644840399451204643</id><published>2009-12-09T02:02:00.000-08:00</published><updated>2009-12-09T02:13:13.047-08:00</updated><title type='text'>Errno::EACCES (Permission denied - Permission denied -  Paperclip+Jruby+RMagick4j</title><summary type='text'>If The issue Like:=========================================================================================== Processing UsersController#upload_photo (for 125.18.56.182 at 2009-12-09 00:29:27) [POST]  Parameters: {"authenticity_token"=&gt;"9w6TN5+/SsEp90euL2/qX/z+/v/RGkwPy7jKCmA1Z2A=", "user"=&gt;{"photo"=&gt;#}, "x"=&gt;"31", "y"=&gt;"16"}  User Load (3.0ms)   SELECT * FROM `users` WHERE (`users`.`id` = 29) </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/2644840399451204643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=2644840399451204643' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2644840399451204643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2644840399451204643'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/12/errnoeacces-permission-denied.html' title='Errno::EACCES (Permission denied - Permission denied -  Paperclip+Jruby+RMagick4j'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-1367424586422460280</id><published>2009-12-03T05:56:00.000-08:00</published><updated>2009-12-03T06:12:28.462-08:00</updated><title type='text'>How To Compile Apache on Linux/Solaris.</title><summary type='text'>Download Source from http://httpd.apache.org/download.cgigunzip httpd-2.2.14.tar.gztar -xvf httpd-2.2.14.tar--------------------------------------------------- ./configure --prefix=/usr/local/apache2 --with-mpm=worker --disable-cgid --enable-info --enable-proxy --enable-proxy-connect --enable-proxy-ftp --enable-proxy-http --enable-proxy-balancer --enable-rewrite --enable-headers --enable-cache --</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/1367424586422460280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=1367424586422460280' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1367424586422460280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1367424586422460280'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/12/how-to-compile-apache-on-linuxsolaris.html' title='How To Compile Apache on Linux/Solaris.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-1939788862264357201</id><published>2009-11-16T03:00:00.000-08:00</published><updated>2009-11-16T03:18:45.418-08:00</updated><title type='text'>WebSite Monitoring Simple .!</title><summary type='text'>First of all create one /opt/monitoring.rb and /home/sites.txt -------------------------------------------------------------#!/usr/bin/rubyrequire 'net/http'require 'net/smtp'File.open("/home/sites.txt").each { |line|        # get rid of CRLF        line.chomp!        next if(line[0..0] == '#' || line.empty?)#       url, emails = line.split(' ')#       emails = emails.split(",")        url= </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/1939788862264357201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=1939788862264357201' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1939788862264357201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1939788862264357201'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/11/website-monitoring-simple.html' title='WebSite Monitoring Simple .!'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-1456932649780863756</id><published>2009-11-09T04:29:00.000-08:00</published><updated>2009-11-09T04:31:48.742-08:00</updated><title type='text'>Script for Mysql Backup on Linux.</title><summary type='text'>#!/bin/bash# USER VARIABLESTIMESTAMP=$(date +%Y-%m-%d)MYSQLUSER=rootMYSQLPWD=passwdMYSQLHOST=localhost# PATH VARIABLESMK=/bin/mkdirGREP=/bin/grepMYSQL=/usr/bin/mysqlMYSQLDUMP=/usr/bin/mysqldump# CREATE MYSQL BACKUP# Create new backup dir$MK /backup/mysqlbackup/mysqlback_$TIMESTAMP#Dump new filesfor i in $(echo 'SHOW DATABASES;' | $MYSQL -u$MYSQLUSER -p$MYSQLPWD -h$MYSQLHOST|$GREP -v '^Database$')</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/1456932649780863756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=1456932649780863756' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1456932649780863756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1456932649780863756'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/11/script-for-mysql-backup-on-linux.html' title='Script for Mysql Backup on Linux.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-4040654640092943544</id><published>2009-10-20T07:36:00.000-07:00</published><updated>2009-10-20T07:39:51.055-07:00</updated><title type='text'>Mysql Master-Slave Replication</title><summary type='text'>Master server ip: 10.0.0.1Slave server ip: 10.0.0.2Slave username: replSlave pw: replpasswdYour data directory is: /usr/local/mysql/data-----------------------Master Server-----------------------# Here follows entries for some specific programs# The MySQL server[mysqld]port            = 3306socket          = /tmp/mysql.sockskip-lockingkey_buffer_size = 256Mmax_allowed_packet = 1Mtable_open_cache </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/4040654640092943544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=4040654640092943544' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4040654640092943544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4040654640092943544'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/10/mysql-master-slave-replication.html' title='Mysql Master-Slave Replication'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-4548432604044192145</id><published>2009-10-16T03:15:00.000-07:00</published><updated>2009-10-16T03:18:15.880-07:00</updated><title type='text'>Cpanel/WHM Documentation</title><summary type='text'>Hi All,You may find good documentation of cPanel/WHM installation and configuration.http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WebHomeEnjoy- ;)</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/4548432604044192145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=4548432604044192145' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4548432604044192145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/4548432604044192145'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/10/cpanelwhm-documentation.html' title='Cpanel/WHM Documentation'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-8943552012517878008</id><published>2009-09-21T07:45:00.001-07:00</published><updated>2009-09-21T07:45:09.948-07:00</updated><title type='text'>Shrikant Lokhande's blog | Found on IndiBlogger.in</title><summary type='text'>I want you to take a look at: Shrikant Lokhande's blogIt's on IndiBlogger.in, the largest, coolest and most active community of Indian bloggers!</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/8943552012517878008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=8943552012517878008' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/8943552012517878008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/8943552012517878008'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/09/shrikant-lokhande-blog-found-on.html' title='Shrikant Lokhande&amp;#39;s blog | Found on IndiBlogger.in'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-9097894929566635716</id><published>2009-09-06T05:35:00.000-07:00</published><updated>2009-09-06T05:41:37.866-07:00</updated><title type='text'>How to change MTA on Centos5.3(RHEL based server)</title><summary type='text'>Here you can see, how to change MTA qmail to any other you can set as simple sendmail or postfix, exim or qmail.[root@hostshot ~]#ll  /etc/alternatives/mtalrwxrwxrwx 1 root root 23 Aug 31 03:39 /etc/alternatives/mta -&gt; /var/qmail/bin/sendmail[root@hotshot ~]# alternatives --config mtaThere are 4 programs which provide 'mta'.  Selection    Command-----------------------------------------------*+ 1</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/9097894929566635716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=9097894929566635716' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/9097894929566635716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/9097894929566635716'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/09/how-to-change-mta-on-centos53rhel-based.html' title='How to change MTA on Centos5.3(RHEL based server)'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-2518222739102902058</id><published>2009-08-20T07:20:00.000-07:00</published><updated>2009-08-20T07:59:11.757-07:00</updated><title type='text'>Problem with installation of gem mechanize nokogiri rfeedparser</title><summary type='text'>If the issue is with installtion of :gem install mechanize Following package needs:yum install expatyum install libexpatyum install libxml2-develyum install libxmlyum install libxml-develyum install libxslt libxslt-devyum install libxslt-develcd /usr/local/lib/ruby/gems/1.8/gems/nokogiri-1.3.3ruby ext/nokogiri/extconf.rbmake make installOr just do "gem install mechanize"--------------------------</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/2518222739102902058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=2518222739102902058' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2518222739102902058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2518222739102902058'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/08/problem-with-installation-of-gem.html' title='Problem with installation of gem mechanize nokogiri rfeedparser'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-8596870233821150983</id><published>2009-08-20T06:39:00.000-07:00</published><updated>2009-08-20T06:56:40.177-07:00</updated><title type='text'>How to "gem install mysql" ?</title><summary type='text'>If you trying to install mysql gem, and you are not able to install. -----------------------------------------------------gem install mysqlBuilding native extensions.  This could take a while...ERROR:  Error installing mysql:        ERROR: Failed to build gem native extension./usr/local/bin/ruby extconf.rb install mysqlchecking for mysql_query() in -lmysqlclient... nochecking for main() in -lm...</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/8596870233821150983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=8596870233821150983' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/8596870233821150983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/8596870233821150983'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/08/how-to-gem-install-mysql.html' title='How to &quot;gem install mysql&quot; ?'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-8095775120143582930</id><published>2009-08-14T01:50:00.000-07:00</published><updated>2009-08-14T01:56:54.329-07:00</updated><title type='text'>How to set sphinx.yml for Thinking-Sphinx (full text indexer)?</title><summary type='text'>----------------------------------------------------------------------vi config/sphinx.ymlproduction:  port: 3312  address: 127.0.0.1  mem_limit:  512M  max_children: 300  max_matches: 100000  seamless_rotate: 1  preopen_indexes: 1  query_log_file:  /mnt/app/rails/releases/code/log/searchd.query.log  searchd_log_file: /mnt/app/rails/releases/code/log/searchd.log  pid_file:  /mnt/app/crawler/rails</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/8095775120143582930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=8095775120143582930' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/8095775120143582930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/8095775120143582930'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/08/how-to-set-sphinxyml-for-sphinx-full.html' title='How to set sphinx.yml for Thinking-Sphinx (full text indexer)?'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-6524297410613281213</id><published>2009-08-14T01:43:00.000-07:00</published><updated>2009-08-14T01:45:17.802-07:00</updated><title type='text'>Access remote mysql database.</title><summary type='text'>Grant all databases remotely to given IP address: GRANT ALL ON *.* TO root@'164.19.212.15' IDENTIFIED BY 'passwd';If you want to Particular  IP address :GRANT ALL ON india.* TO root@'164.19.212.15' IDENTIFIED BY 'passwd';</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/6524297410613281213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=6524297410613281213' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/6524297410613281213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/6524297410613281213'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/08/access-remote-mysql-database.html' title='Access remote mysql database.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-2512435517817539887</id><published>2009-08-10T06:40:00.000-07:00</published><updated>2009-08-10T06:45:27.444-07:00</updated><title type='text'>Create Session table in (RoR) Ruby on Rails .!</title><summary type='text'>CREATE TABLE `sessions` (  `id` int(11) NOT NULL auto_increment,  `session_id` varchar(255) default NULL,  `data` varchar(255) default NULL,  `updated_at` datetime default NULL,  `created_at` datetime default NULL,  PRIMARY KEY  (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;To change Session cookie to Active records do following setting:cat config/initializers/session_store.rb* un-comment line </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/2512435517817539887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=2512435517817539887' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2512435517817539887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2512435517817539887'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/08/create-session-table-in-ror-ruby-on.html' title='Create Session table in (RoR) Ruby on Rails .!'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-2276385114835645955</id><published>2009-08-04T08:03:00.000-07:00</published><updated>2009-08-04T08:05:17.728-07:00</updated><title type='text'>MySQL Backups using LVM snapshots</title><summary type='text'>lvcreate -L40G -s -n dbbackup /dev/VolGroup00/LogVol03lvm&gt; lvremove /dev/VolGroup00/dbbackupDo you really want to remove active logical volume "dbbackup"? [y/n]:    ----------------------------------------------------------------------------Stapes to Install and configure LVM. fdisk -l fdisk /dev/hdb         :p to print partition         :n to Extend partition:eLast cylender  _______ enter:n to </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/2276385114835645955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=2276385114835645955' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2276385114835645955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2276385114835645955'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/08/mysql-backups-using-lvm-snapshots.html' title='MySQL Backups using LVM snapshots'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-3333888024670464301</id><published>2009-08-01T04:42:00.000-07:00</published><updated>2009-08-01T04:49:49.414-07:00</updated><title type='text'>Ruby On Rails : "God Monitoring With backgroundrb".</title><summary type='text'>vi config/backgroundrb.god#--------------------------------------------------------------#run on command line with 'god -c backgroundrb.god -D' RAILS_ROOT = '/mnt/app/application/current' #load required rails and backgroundrb files require File.dirname(__FILE__) + '/boot' require File.dirname(__FILE__) + '/environment' require 'erb' $LOAD_PATH &lt;&lt; "#{RAILS_ROOT}/vendor/plugins/backgroundrb/lib" </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/3333888024670464301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=3333888024670464301' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/3333888024670464301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/3333888024670464301'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/08/ruby-on-rails-god-monitoring-with.html' title='Ruby On Rails : &quot;God Monitoring With backgroundrb&quot;.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-8152709114646557442</id><published>2009-07-31T04:01:00.000-07:00</published><updated>2009-07-31T04:05:16.499-07:00</updated><title type='text'>(98)Address already in use: make_sock: could not bind to address [::]:8000 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80</title><summary type='text'>If You facing Problem: (98)Address already in use: make_sock: could not bind to address [::]:8000(98)Address already in use: make_sock: could not bind to address 0.0.0.0:8000no listening sockets available, shutting downFix as follows :netstat -tulpn| grep :80tcp        0      0 0.0.0.0:8028                0.0.0.0:*                   LISTEN      5476/(squid)tcp        0      0 :::80</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/8152709114646557442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=8152709114646557442' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/8152709114646557442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/8152709114646557442'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/07/98address-already-in-use-makesock-could.html' title='(98)Address already in use: make_sock: could not bind to address [::]:8000 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-8934659959958919462</id><published>2009-07-29T00:55:00.000-07:00</published><updated>2009-07-29T00:58:57.216-07:00</updated><title type='text'>How To Read File In  .gz  Format.</title><summary type='text'>Just Use This commands:---------------------------------------------------zcat maillog.1.gz | lesszcat maillog.1.gz | grep '@yahoo.co'---------------------------------------------------</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/8934659959958919462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=8934659959958919462' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/8934659959958919462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/8934659959958919462'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/07/how-to-read-file-in-gz-format.html' title='How To Read File In  .gz  Format.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-536528721685294735</id><published>2009-07-28T03:11:00.000-07:00</published><updated>2012-01-02T22:39:50.316-08:00</updated><title type='text'>Postfix installation on CentOs/Linux</title><summary type='text'>This is Postfix configuration on CentOs/Linux with relay, Usually people want to send bulk mail with mail server, so it will really help this post  
----------------------------------------------------------------------------------------------------
yum install postfix


* then change default main.cnf to main.cnf.Bak, your config file as follows: /etc/postfix/main.cf
-----------------------------</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/536528721685294735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=536528721685294735' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/536528721685294735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/536528721685294735'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/07/postfix-installation-on-centos-53.html' title='Postfix installation on CentOs/Linux'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-6248745088067605310</id><published>2009-07-28T02:12:00.000-07:00</published><updated>2009-07-28T03:02:36.468-07:00</updated><title type='text'>ezcrypto segmentation fault error (Rails 2.3.2)</title><summary type='text'>There is dependency of openssl version for ezcrypto gem, fix as follows.=======================gem install ezcrypto gem list ==&gt;*** LOCAL GEMS ***ezcrypto (0.7.2)*Check openssh Version.!rpm -q openssl-devel opensslopenssl-devel-0.9.8b-10.el5openssl-devel-0.9.8e-7.el5openssl-0.9.8b-10.el5openssl-0.9.8e-7.el5* if found openssl-devel-0.9.8b-10.el5 and openssl-0.9.8b-10.el5. Please remove from </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/6248745088067605310/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=6248745088067605310' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/6248745088067605310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/6248745088067605310'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/07/ezcrypto-segmentation-fault-error-rails.html' title='ezcrypto segmentation fault error (Rails 2.3.2)'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-8977498251403800666</id><published>2009-07-21T02:34:00.000-07:00</published><updated>2009-07-21T02:42:11.991-07:00</updated><title type='text'>To View Only Directory Listing In Current Path.</title><summary type='text'>Just do.================ls -ld */================</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/8977498251403800666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=8977498251403800666' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/8977498251403800666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/8977498251403800666'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/07/to-view-only-directory-listing-in.html' title='To View Only Directory Listing In Current Path.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-895439943546533858</id><published>2009-07-20T07:11:00.000-07:00</published><updated>2009-07-20T07:23:36.886-07:00</updated><title type='text'>When PHP code showing on your Site (mod_php).</title><summary type='text'>If you compile apache but php is not Support, Here are the relevant lines from my httpd.conf fileAddType application/x-httpd-php .php .php4 .php3AddType application/x-httpd-php-source .phps  AddType application/x-httpd-php .php4 .php3 .phtml .php  AddType application/x-httpd-php-source .phps The following is for PHP3:  AddType application/x-httpd-php3 .php3  AddType application/x-httpd-php3-</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/895439943546533858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=895439943546533858' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/895439943546533858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/895439943546533858'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/07/when-php-code-showing-on-your-site.html' title='When PHP code showing on your Site (mod_php).'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-403664333345316189</id><published>2009-07-19T23:59:00.000-07:00</published><updated>2009-07-21T02:13:29.186-07:00</updated><title type='text'>How to login in a remote server using SSH and no password ?</title><summary type='text'>Just use Two commands.=====================================ssh-keygen -t rsassh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.0 =====================================Simplest Way for Backup, Samba server, rsync and many more if you use.</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/403664333345316189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=403664333345316189' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/403664333345316189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/403664333345316189'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/07/for-directly-login-to-servers-each.html' title='How to login in a remote server using SSH and no password ?'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-1699484708538571599</id><published>2009-07-15T04:39:00.000-07:00</published><updated>2009-07-15T04:51:44.209-07:00</updated><title type='text'>Perlbal Configure Example.</title><summary type='text'>--------------------------------------------------------------------LOAD vhostsLOAD vpathsLOAD AccessControlLoad palimgLoad AccessControl#SERVER aio_mode = ioaioCREATE POOL poolserver1   POOL poolserver1 ADD 0.0.0.0:7200   POOL poolserver1 ADD 0.0.0.0:7201   POOL poolserver1 ADD 0.0.0.0:7202   POOL poolserver1 ADD 0.0.0.0:7203CREATE SERVICE site  # NOTE: SSL mode only works for reverse_proxy, not</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/1699484708538571599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=1699484708538571599' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1699484708538571599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/1699484708538571599'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/07/perlbal-configure-example.html' title='Perlbal Configure Example.'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-5172790021619079814</id><published>2009-02-09T07:42:00.000-08:00</published><updated>2009-02-09T07:49:07.847-08:00</updated><title type='text'>How to Perlbal as Webserver with RAILS+MONGREL ..?</title><summary type='text'>Hey Guys,First Resolve All dependency with modules.  ---------------------------------------------Perl Module for Webserver and Balancer and Cpan Library.Cpan : cpan script version 1.03, CPAN.pm version 1.7602Danga-Socket-1.61IO-AIO-3.17Perlbal-XS-HTTPHeaders-0.19libwww-perl-5.823Sys-Syscall-0.22FleetConf-0.01_016Log-Dispatch-2.22-----------------------------------------------SSL need:Net-SSLeay-</summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/5172790021619079814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=5172790021619079814' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/5172790021619079814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/5172790021619079814'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2009/02/how-to-perlbal-as-webserver-with.html' title='How to Perlbal as Webserver with RAILS+MONGREL ..?'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4626852300956927654.post-2834287562254612498</id><published>2008-05-18T08:04:00.000-07:00</published><updated>2008-05-18T08:06:42.015-07:00</updated><title type='text'>Apache Rewrite Rules</title><summary type='text'>The Apache module mod_rewrite provides a powerful mechanism for hiding, redirecting, and reformatting request URLs. I just finished implementing a mod_rewrite scheme for timfanelli.com to accomplish 3 things:   1. Redirect old URLs with a 301 redirect code   2. Hide certain parts of the URL from my readers.   3. Optimize my Google pagerank.Using a two simple rewrite ruleRewriteEngine </summary><link rel='replies' type='application/atom+xml' href='http://shriikant.blogspot.com/feeds/2834287562254612498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4626852300956927654&amp;postID=2834287562254612498' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2834287562254612498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4626852300956927654/posts/default/2834287562254612498'/><link rel='alternate' type='text/html' href='http://shriikant.blogspot.com/2008/05/apache-rewrite-rules.html' title='Apache Rewrite Rules'/><author><name>Shrikant Lokhande</name><uri>http://www.blogger.com/profile/05320219663762573331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_O0XzG4DUlO4/Sq-1zPUicQI/AAAAAAAAAqs/BokE3dJ9aeU/S220/photo_shrii.jpg'/></author><thr:total>0</thr:total></entry></feed>
