CPanel Link to all of the command line options

CPanel says you can access 98% of the functions through CLI which experienced Unix/Linux admins prefer for simplicity and for scripting.  I've never found CPanel easy to use from the admin panel, it seems everything is hard to find and a simple task becomes a series of hunts.

So for people like me here's the list: http://cpanel.net/system-administrators/command-line-scripts/

Remember to invoke all scripts like this:

 

/scripts/scriptname

 

easyapache
This powerful script allows you to compile, upgrade, and re-install Apache, PHP, and various modules. EasyApache makes it simple to compile Apache and PHP modules.
check_cpanel_rpms
The check_cpanel_rpms script validates cPanel-managed RPMs and provides a way to reinstall these RPMs if they have been altered.
*up
The *up script is used to manually update the various services on your cPanel & WHM server using various forms such as mysqlup, phpup and eximup. Although you can configure your services to update with cPanel, *up can be used for finer control.
restartsrv_*
The restartsrv_* script can be used to manually restart the various services on your cPanel server. This is the recommended method for restarting services through SSH.
addpop
The addpop script can be used to add email addresses through SSH. Through interactive prompts, addpop will create the new address and set the email address password under the proper user account.
delpop
The delpop scripts can be used to remove email accounts through SSH. Similar to the addpop script, delpop will remove the email address from the proper account.
wwwacct
The wwwacct script can be used to create accounts for your cPanel & WHM server. We’ve designed this script to allow you define common parameters used for account creation.
killacct
The killacct script can be used in similar fashion as the wwwacct script to automate removal of accounts.
restorepkg
The restorepkg script can be used to manually restore an account from backup.
cpbackup
When using cPanel & WHM’s legacy backup system the cpbackup script can be used to manually trigger system wide backups.
pkgacct
The pkgacct script is used within the cpbackup script and can be manually executed to create account specific backups.
upcp
The upcp script can be used to trigger the update process on your server. You can also configure whether you want server software and the OS updated by the upcp script.
setupmailserver
The setupmailserver script allows you to switch between courier and dovecot, or disable POP3 and IMAP functionality altogether.
setupftpserver
The setupftpserver script allows you to switch between pure-ftpd and proftpd, or disable ftp functionality altogether.
setupnameserver
The setupnameserver script allows you to switch between bind, mydns, and nsd, or disable nameserver functions altogether.
suspendacct
The suspendacct script can be used to automate suspension of accounts on your cPanel & WHM server.
unsuspendacct
The unsuspendacct script can be used to automate unsuspension of accounts on your cPanel & WHM server.
restartsrv_*
The restartsrv family of scripts can be used to restart various services on your cPanel & WHM server, such as Apache, Exim and Dovecot. For administration using the command line, this is the preferred method for restarting services. For a complete list please consult our documentation. Included are:

 

 


Tags:

cpanel, functions, cli, unix, linux, admins, simplicity, scripting, ve, admin, panel, task, hunts, href, quot, http, administrators, scripts, invoke, scriptname, dl, cl, dt, easyapache, dd, allows, compile, upgrade, install, apache, php, various, modules, check_cpanel_rpms, validates, rpms, provides, reinstall, altered, manually, update, whm, server, mysqlup, phpup, eximup, configure, finer, restartsrv_, restart, recommended, method, restarting, ssh, addpop, email, addresses, interactive, prompts, password, user, delpop, wwwacct, rsquo, define, parameters, creation, killacct, automate, removal, restorepkg, restore, cpbackup, legacy, backups, pkgacct, executed, upcp, software, os, updated, setupmailserver, courier, dovecot, disable, imap, functionality, altogether, setupftpserver, ftpd, proftpd, ftp, setupnameserver, bind, mydns, nsd, nameserver, suspendacct, suspension, unsuspendacct, unsuspension, restartsrv, exim, administration, preferred, consult, docs, twiki, bin, alldocumentation, whmdocs, restartservices, _blank, documentation, included,

Latest Articles

  • Linux Ubuntu Cannot Print Large Images
  • Cannot Print PDF Solution and Howto Resize
  • Linux Console Login Screen TTY Change Message
  • Apache Cannot Start Listening Already on 0.0.0.0
  • MySQL Bash Query to pipe input directly without using heredoc trick
  • CentOS 6 and 7 / RHEL Persistent DHCP Solution
  • Debian Ubuntu Mint rc-local service startup error solution rc-local.service: Failed at step EXEC spawning /etc/rc.local: Exec format error
  • MySQL Cheatsheet Guide and Tutorial
  • bash script kill whois or other command that is running for too long
  • Linux tftp listens on all interfaces and IPs by DEFAULT Security Risk Hole Solution
  • python import docx error
  • Cisco Unified Communications Manager Express Cheatsheet CUCME CME
  • Linux Ubuntu Debian Missing privilege separation directory: /var/run/sshd
  • bash how to count the number of columns or words in a line
  • bash if statement how to test program output without assigning to variable
  • RTNETLINK answers: Network is unreachable
  • Centos 7 how to save iptables rules like Centos 6
  • nfs tuning maximum amount of connections
  • qemu-kvm error "Could not initialize SDL(No available video device) - exiting"
  • Centos 7 tftpd will not work with selinux enabled