Archive for February, 2012

Load average script

Wednesday, February 22nd, 2012

for ((i=0; i<=2160; i++)); do uptime; sleep 120; done

How to check the Summary of load average for all domains in WHM server

Wednesday, February 22nd, 2012

use the below command


iftop installation

Wednesday, February 22nd, 2012

the below installation for Linux ( Centos)

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

yum install iftop

How to Find load causing processes (Load issue)

Wednesday, February 22nd, 2012

ps aux | awk ‘{print $4?\t”$11}’ | sort | uniq -c | awk ‘{print $2? “$1? “$3}’ | sort -nr | head

Out of memory OOM errors

Wednesday, February 22nd, 2012

grep out_of_memory /var/log/messages

Install ntupdate and synchronize the date

Wednesday, February 22nd, 2012

Please refer to below

yum install ntp

chkconfig ntpd on

ntpdate pool.ntp.org

/etc/init.d/ntpd start

Linux disk space issue

Monday, February 13th, 2012

Refer to the below URL


mcrypt with php 5.3

Wednesday, February 8th, 2012

You need to run this command

1- yum install php-mcrypt     if not help then you need to run2

2- yum install php53-mcrypt     if not help then this for sure will help 3


rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum install php53-mcrypt

if you want to test you need to run this below
sudo vi /etc/php.d/mcrypt.ini
$ php -r "phpinfo();" | grep "mcrypt support"
if enabled then you should see    mcrypt support => enabled

Then restart the services

sudo /etc/init.d/httpd configtest