Monthly Archives: July 2009

The perl module Encode::Detect::Detector could not be installed

Change the current cpanel version to stable : vi /etc/cpupdate.conf CPANEL=stable /scripts/upcp –force /scripts/perlinstaller –force Encode::Detect::Detector If that doesn’t work, please try /scripts/autorepair encodedetectfix No luck? then do: type cpan and from cpan mode type below. install Detect::Module If none

Posted in Cpanel, Issues

Track Spammers in Plesk

Install qmhandle-1.3.2 from: cd qmhandle-1.3.2 ./qmHandle -s shows the stats of mails. To view the mails in queue, please do # /var/qmail/bin/qmail-qstat messages in queue: 758 messages in queue but not yet preprocessed: 0 Let’s examine the queue with

Posted in Issues, Mail, Plesk

Bootable Linux USB drive

1. Download the version of Linux you wish to install in USB drive 2. Download Unetbooin application from 3. Open the application Unetbooin 4. Select the second option “Diskimage” and select ISO mode 5. Make sure you have selected

Posted in Technical Tips

Prevent SYN attacks

1. Enable SYN cookies mechanism in the server by the executing command: # echo 1 > /proc/sys/net/ipv4/tcp_syncookies 2. Increase the backlog queue to 2048 by the command: # sysctl -w net.ipv4.tcp_max_syn_backlog=”2048″

Posted in Apache, Issues, Server Security

Auto reload in Google Chrome

Create a bookmark with the following code as the URL javascript: timeout=prompt(“Set timeout [s]”); current=location.href; if(timeout>0) setTimeout(‘reload()’,1000*timeout); else location.replace(current); function reload(){ setTimeout(‘reload()’,1000*timeout); fr4me='<frameset cols=\’*\’>\n<frame src=\”+current+’\’/>'; fr4me+='</frameset>'; with(document){write(fr4me);void(close())}; } Click the bookmark with the tab you want to auto-reload active. Set

Posted in Technical Tips

Hiding redirect url

Create an index.html file : <frameset rows=”100%”> <frame src=””&gt; </frameset> <noframes> <body>Please follow <a href=””>link</a&gt;!</body> </noframes>

Posted in General discussions, Issues, Scripts

Script used to transfer account from cpanel server

#!/bin/bash ls -1 /var/cpanel/users > /root/user_list PORT=”22″ ssh-keygen -t dsa KEY=`cat /root/.ssh/` ssh $1 -p$PORT “mkdir -p /root/.ssh;echo ${KEY} >> /root/.ssh/authorized_keys” 2>&1 scp /var/cpanel/packages/* $1:/var/cpanel/packages/ for user in $(cat /root/user_list);do /scripts/pkgacct $user;done scp /home/user_list $1:/home scp /home/cpmove* $1:/home

Posted in Cpanel, Scripts, Server Setup
Blog Stats
  • 125,691 hits

Get every new post delivered to your Inbox.

Join 211 other followers