cPanel is the best and number 1 web hosting control panel for a Linux server.
This will enable the administrator to manage everything through cPanel/WHM without headaches.
It currently supports CentOS/RHEL/CloudLinux 6/7.
cPanel/WHM is designed to instantly host a website after installation.
cPanel installs all the software needed to run a website, including Apache, PHP, MySQL/MariaDB, PostgreSQL, Perl, BIND (DNS), POP3, IMAP, and SMTP services are part of the cPanel installation process.
When you add a domain name through cPanel, it automatically adds all the inputs needed to run a website, such as creating a user account on the server, the home directory for the user, the DNS zone for the domain, adding a domain to Exim mail server, and ftp account for file transfer, if you give information, it also adds a database.
But on normal server this is very difficult and you have to create everything manually.
However if you only host a few websites, you can manage without cPanel, but when you host more than 100 websites it is very difficult to manage that server.
It provides a number of useful command-line utility scripts that enable you to perform multiple actions through CLI.
Even if you have a future rich graphical interface (GUI), you may need to do some work on the command line. It provides over 100 application scripts to manage cPanel/WHM through CLI.
Here we are going to list the important cPanel/WhM application scripts. The scripts are located in the
/usr/local/cpanel/scripts directory, and you are advised to do the full path when you want to use this script.
To display help for a script, run the command as follows:
|/scripts/addns||add a dns zone
|/scripts/addpop||add a pop3 email account
|/scripts/addservlets||Add JSP support to a domain (tomcat server required)|
|/scripts/adduser||Add a user to the system|
|/scripts/chpass||change cpanel passwords to particular account|
|/scripts/courierup||used to update/reinstall courier|
|/scripts/cpbackup --force||to backup accounts (if backups enabled on WHM)|
|/scripts/editquota||to manually set a users quota limit|
|/scripts/eximup||to update exim to latest version - will overwrite any manual changes which was made on exim.conf file|
|/scripts/fixcommonproblems||fixes mailbox permissions, mailman, cgi scripts, ndc and quotas|
|/scripts/fixmailman||fixes common mailman issues|
|/scripts/fixndc||fixes rndc errors with named|
|/scripts/fixquotas||fixes quota problems|
|/scripts/fullhordereset||resets horde database to a fresh one - all previous user data are lost|
|/scripts/ftpup||used to update/install FTP server (pureftpd or proftpd) to latest version|
|/scripts/generatemaildirsize||generates new maildirsize for any or all users|
|/scripts/installzendopt||installs zend optimizer via phpextensionmgr|
|/scripts/killacct||terminate an account - make sure you take a backup of the account first|
|/scripts/killdns||removes a DNS Zone|
|/scripts/mailperm||fixes permission problems with mail directories|
|/scripts/makecpphp||rebuilds internal PHP from /var/cpanel/easy/apache/profile/makecpphp.profile.yaml|
|/scripts/mysqlup||used to update mysql to latest version specified in /var/cpanel/cpanel.config|
|/scripts/pkgacct||to create an account backup|
|/scripts/phpup||to update PHP only|
|/scripts/phpextensiomgr||Installs IonCube, Zend Optimizer, SuHosin & eAccelerator|
|/scripts/rebuildnamedconf||rebuilds /etc/named.conf with zones from /var/named/*.db|
|/scripts/restartsrv_$servicename||restart script for services|
|/scripts/restorepkg||restores an account from a backup file (pkgacct file)(must be in /home)|
|/scripts/runlogsnow||update logs of all users|
|/scripts/runweblogs||update stats for a particular user|
|/scripts/securetmp||secures /tmp partition with options nosuexec and nosuid|
|/scripts/suspendacct||suspends an account|
|/scripts/unsuspendacct||unsuspends a suspended account|
|/scripts/upcp --force||updates cpanel to the latest version|
|/scripts/updatenow||updates the cpanel scripts|
|/scripts/updateuserdomains||updates /etc/userdomains entries from /var/cpanel/users|
|/scripts/wwwacct||to create new accounts (wwwacct domain.com user password)|
I hope you found this article helpful. Please provide your valuable feedback in the comment section to improve this article.
Stay tuned with us!!