Plesk Tutorial
I just found a great tutorial of plesk control panel. Here is the link: http://www.eukhost.com/web-hosting/plesk-tutorial.php
Upgrade Python to 3.1
cd /usr/local/src wget http://www.python.org/ftp/python/3.1.1/Python-3.1.1.tar.bz2 tar -jxvf Python-3.1.1.tar.bz2 cd Python-3.1.1 ./configure make make install Now move /usr/bin/python /usr/bin/python.bk then [...]
Drop Sync/DDOS Attack
1. Find.. to which IP address in the server is targeted by the ddos attack netstat -plan | [...]
Script for replacing a string in multiple files
for y in `ls | grep .html`; do sed "s/abc/xyz/g" $y > temp; mv -f temp $y; done
How to Boot second kernel if first fails
Reference : http://www.linux-noob.com/forums/index.php?/topic/2928-grub-single-boot-and-kernel-panic-reboot/ If for example your grub.conf looks like the one i have below. This boots into [...]
Difference between Xen and Open VZ
I just found a great article that discussed about the difference between xen and open vz. Here is [...]
Sender verify defer + host lookup did not complete
Login to WHM >> Main >> Service Configuration >> Exim Configuration Editor . Uncheck the option: Sender Verification [...]
Install Zend Optimizer
cd /usr/local/src check latest zendoptimizer wget http://www.eth0.us/files/ZendOptimizer-3.0.1-linux-glibc21-i386.tar.gz tar -zxf ZendOptimizer-3.0.1-linux-glibc21-i386.tar.gz cd ZendOptimizer-3.0.1-linux-glibc21-i386 ./install If u still receiving "Zend [...]
Round Robin DNS
Round robin DNS is a technique in which load balancing is performed by a DNS server instead of [...]
Disable ping to server
To disable ping echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all To enable ping echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
Change Mail Server IP
Sometimes your server’s IP address may get black listed by most of RBLs. In such situation a quick [...]
Remote access to mysql database
Step 1 : vi /etc/my.cnf --------------------------------------------- pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr [...]
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 [...]