Cpanel/WHM FAQs

Home | Webstats | Frontpage | Disk Quota | FTP Problems | MySql | Exim Notes | Basic Commands | TCP Wrappers | Kernel Compilation| Nagios| Harddisk Restoration| Cpanel Scripts| IPTables
Search Query

RSS site feed|Webmaster Stuff|International Calling Cards|Linux Recovery|Server Recovery|Hard Drive Recovery|Raid Recovery

Shell Scripts

Here I have given some of the shell scripts that I found useful. Please have a look into it and make changes if necessary.

Remote FTP Backup Script


#!/bin/bash
serverip=IP address
serveruser=username
serverpass=password
localdir=/backup2/cpbackup/weekly
remotedir=backup/weekly
bakdate=`date`
host=`hostname`
cd $localdir
echo "Starting FTP Backup on " $host $bakdate
/usr/bin/ftp -in < open $serverip
user $serveruser $serverpass
cd $remotedir
bin
verbose
mput *.*
stat
bye

Script to update Awstats for all the users. We can set it as as a cron job incase Awstats is not properly updating.

cd /var/cpanel/users;for i in *;do /scripts/runweblogs $i;echo logs done for $i;done;echo &all done &

Can I see a demo of Cpanel and WHM?

Yes, click here if you like to see a Cpanel Demo and click here if you like to see a demo of WHM. A pop up window will appear asking for username and password. Enter the username and password as cpdemo and cpdemo respectively.


How to install Cpanel

1)Verify whether license is valid by giving main shared ip to the url http://verify.cpanel.net/index.cgi
2)If it is valid please go through the url http://www.cpanel.net/install.html

STEPS TO INSTALL CPANEL

mkdir /home/cpanel
cd /home/cpanel
wget http://layer1.cpanel.net/latest
sh latest

Please send comments on these web pages to sumith at sumith.net

copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Sumith Sreedhar
Verbatim copying and redistribution of this entire page are permitted provided this notice is preserved.


Valid HTML 4.01!