For migrating Reseller and/or Bulk accounts between cPanel servers:: 1) On source server cd /home mkdir /home/Migration cat /etc/trueuserowners |grep reseller_username | awk ‘{print $1}’ | cut -d: -f 1 > Migration.txt for i in `cat Migration.txt`;do /scripts/pkgacct $i; mv /home/cpmove-$i.tar.gz /home/Migration/;done 2) On Destination server vi Migration.txt ( add all username which you want to […]
See MoreCategory: Hostripples Featured
How to update the yum repository on Centos 5 server
How to update the yum repository on Centos 5 server 1) yum install yum-fastestmirror 2) yum install yum-priorities 3) uname -i If the output is i386 then cd /usr/local/src wget http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm 4) Install key rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt 5) Install rpmforge rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm 6) yum check-update It will take some time to update teh RPM […]
See MoreManage multiple IP addresses with CSF
Manage multiple IP addresses with CSF The command to deny an IP: # csf -d ip.address Click here for more CSF commands Here is the script to block number of IPs: 1, Save the IPs in a text file: vi block.txt ….. 1.1.1.5 1.1.1.1 1.1.1.4 1.1.1.6 ….. 2, Blocking them using for loop: # for […]
See More