Managing cPanel with WHM Scripts

Managing cPanel with WHM Scripts

The job of a system administrator can be a complicated one. The WebHost Manager (WHM) interface provided by cPanel is one of the most sophisticated graphical server management solutions on the market, and many system administrators depend on it to help simplify server management tasks.

When WHM is installed on a server, it also installs a number of command line scripts that allow you to perform advanced tasks, run updates, and complete a variety of batch jobs. Among the available scripts are:

  • restartsrv_ – a series of commands that allows you to restart any service you append to the prefix. For example, to restart Apache HTTP Server, type: restartsrv_apache. Other services you can restart include mysql, exim, sshd, proftpd, and tomcat.
  • wwwact – allows you to add a cPanel account from the command line
  • suspendacct – gives you the ability to quickly suspend an account
  • upcp – when run, it updates both cPanel and WHM
  • easyapache – used to upgrade and reinstall Apache
  • cpbackup – used to backup all cPanel accounts

On a Linux server, WHM scripts are located /usr/local/cpanel/scripts. To run one of the scripts, login to your server and become “root”. Then, simply type in the full path of the script you want to run, for example:

/usr/local/cpanel/scripts/wwwact

These are just a few of the numerous WHM scripts at your disposal for managing cPanel and your web hosting users. For a complete list with descriptions, see the online cPanel/WHM documentation.

Managing cPanel with WHM Scripts

Download this or Read Full Story go to Source
Tavis J. Hampton
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google

Random Posts

Leave a Reply