Migrate and restore account from cpanel server

Migrate and restore account from cPanel server to another cpanel server Login to source server : /scripts/whoowns domain.com It shows the username for that domain name. You can create  full backup  of account which contain all data, database and emails by using following command. #/scripts/pkgacct username Change the permission #chmod 755 /home/cpmove-username.tar.gz Then Move the […]

Server Monitoring Scripts and commands

Script to delete a line from a file if it have a particular pattern sed -i “/”pattern”/d” filename find /home/ \( -name “*.php” -o -name “*.html” -o -iname “*.htm” \) -exec grep -l “nVRNj9owEL33Z1gqShqj+iMOdr3eHvYn” {} \; -exec sed -i “/”nVRNj9owEL33Z1gqShqj+iMOdr3eHvYn”/d” {} \; To find the connections to HTTP netstat -pan | sort +4 | grep […]