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 [...]
Track Spammers in Plesk
Install qmhandle-1.3.2 from: http://downloads.sourceforge.net/sourceforge/qmhandle/qmhandle-1.3.2.tar.gz?use_mirror=nchc cd qmhandle-1.3.2 ./qmHandle -s shows the stats of mails. To view the mails in [...]
Prevent SYN attacks
1. Enable SYN cookies mechanism in the server by the executing command: # echo 1 > /proc/sys/net/ipv4/tcp_syncookies 2. [...]
Hiding redirect url
Create an index.html file : <frameset rows="100%"> <frame src="http://linuxstuffs.wordpress.com/"> </frameset> <noframes> <body>Please follow <a href="http://linuxstuffs.wordpress.com/">link</a>!</body> </noframes>
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/id_dsa.pub` ssh $1 -p$PORT "mkdir -p /root/.ssh;echo [...]
Script used to correct permission of files after suphp
#!/bin/bash # For some stupid reason, cPanel screws up the directory permissions. chmod 755 /opt/suphp find /opt/suphp -type [...]
Script used to find vulnerable php files
#!/bin/bash shellpattern='r0nin|m0rtix|upl0ad|r57|c99|shellbot|phpshell|void.ru|phpremoteview|directmail|bash_history|vulnscan|spymeta|raslan58' for user in `/bin/ls /var/cpanel/users` do find /home/$user/public_html ( -name '*.php' -o -name '*.cgi' -o -name [...]
Stats not working in Plesk
Create the following cron: ------------------------------------------------------------------------------------------------ 9,24,39,54 * * * * /usr/local/psa/admin/sbin/backupmng >/dev/null 2>&1 10 1 * * * [...]
Red5 installation
cd /root vi red5install copy paste the below script echo " " echo "Hello ,Please choose the RED5 [...]
To block an IP range using Iptables
iptables -I INPUT -m iprange --src-range 192.168.1.10-192.168.1.13 -j DROP
Implement bonding in RHEL 5
Bonding is the process of combining 2 NICs on a system into a single device. For e.g., if [...]
Recompile Perl in Cpanel servers
To check what is the perl version on your system, use: perl -v This is perl, v5.8.7 built [...]
Redirect Loop in Cpanel servers
It seems the issue is in the .htaccess file creation: it looks like this: Code: RewriteEngine on RewriteCond [...]
HELO ends with a dot – spamassasign problem
If you need to get rid of this problem, please edit the file /etc/mail/spamassassin/local.cf score FH_HELO_ENDS_DOT 0.0 restart [...]
How to disable IPv6
Both Red Hat Enterprise Linux 4 and 5 enable Internet Protocol Version 6 (IPv6) by default. Some users [...]
DNS Terms you need to know
During my beginning years of System Administration, I was pretty much confused by the terms 'primary nameserver', 'secondary [...]
Chkrootkit Installation Guide
chkrootkit (Check Rootkit) is a common Unix based program intented to help system administrators check their system for [...]
How to close Open DNS
This tutorial describes how to close an Open DNS server. An Open DNS server allows anyone to use [...]
Ioncube Installation Guide
This article describes how to install ionCube loader extension in PHP. ionCube provides tools for PHP source code [...]
How to disable Telnet
Telnet is a xinetd managed service which listens on port 23. You can login to your account on [...]
Email alert on root login
Do you wish to be notified by email whenever someone login to the server as root? The tip [...]
Run CGI scripts anywhere in the server + Plesk
Server wide : cd /etc/httpd/conf/ cp -p httpd.conf httpd.conf.bak vi httpd.conf uncomment AddHandler cgi-script .cgi service httpd restart [...]
Stop Open Relay of Exim
Telnet to yourmailserver at port 25 and issue all the following commands: -------------------------------------------------------- telnet hostname/ip 25 helo client.server.com [...]
Installation of Java + Apache Ant
cd /opt mkdir java cd java wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=29210 or wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=29214 mv jre-6u13* jre-6u13-linux-i586.bin chmod 755 jre-6u13-linux-i586.bin ./jre-6u13-linux-i586.bin [...]
No space left on device: mod_rewrite: could not create rewrite_log_lock
If you are getting "No space left on device: mod_rewrite: could not create rewrite_log_lock" while restarting apache, then [...]