Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: cPanel important utility scripts  (Read 3913 times)

0 Members and 1 Guest are viewing this topic.

nandulalr

  • Guest
cPanel important utility scripts
« on: May 01, 2018, 05:41:58 pm »
cPanel is one of the best hosting control panel for Linux environment, which will help administrator to manage everything easily. cPanel having utility scripts to manage cPanel activity on CLI.

The scripts are located at /usr/local/cpanel/scripts. We can use the scripts like /scripts/script_name.

Add a dns zone
Code: [Select]
/scripts/addns

Add a pop3 email account
Code: [Select]
/scripts/addpop

Add JSP support to a domain (tomcat server required)
Code: [Select]
/scripts/addservlets

Add a user to the system
Code: [Select]
/scripts/adduser

Rebuilds exim.conf
Code: [Select]
/scripts/buildeximconf

Change cpanel passwords to particular account
Code: [Select]
/scripts/chpass

Used to update/reinstall courier
Code: [Select]
/scripts/courierup

To backup accounts (if backups enabled on WHM)
Code: [Select]
/scripts/cpbackup --force

Recompile apache
Code: [Select]
/scripts/easyapache

To manually set a users quota limit
Code: [Select]
/scripts/editquota

To update exim to latest version - will overwrite any manual changes which was made on exim.conf file
Code: [Select]
/scripts/eximup

Fixes mailbox permissions, mailman, cgi scripts, ndc and quotas
Code: [Select]
/scripts/fixcommonproblems

Fixes common mailman issues
Code: [Select]
/scripts/fixmailman

Fixes rndc errors with named
Code: [Select]
/scripts/fixndc

Fixes quota problems
Code: [Select]
/scripts/fixquotas

Resets horde database to a fresh one - all previous user data are lost
Code: [Select]
/scripts/fullhordereset

Used to update/install FTP server (pureftpd or proftpd) to latest version
Code: [Select]
/scripts/ftpup

Generates new maildirsize for any or all users
Code: [Select]
/scripts/generatemaildirsize

Initializes quotas
Code: [Select]
/scripts/initquotas

Installs zend optimizer via phpextensionmgr
Code: [Select]
/scripts/installzendopt

Terminate an account - make sure you take a backup of the account first
Code: [Select]
/scripts/killacct

Removes a DNS Zone
Code: [Select]
/scripts/killdns

Fixes permission problems with mail directories
Code: [Select]
/scripts/mailperm

Rebuilds internal PHP from /var/cpanel/easy/apache/profile/makecpphp.profile.yaml
Code: [Select]
/scripts/makecpphp

Used to update mysql to latest version specified in /var/cpanel/cpanel.config
Code: [Select]
/scripts/mysqlup

To create an account backup
Code: [Select]
/scripts/pkgacct

To update PHP only
Code: [Select]
/scripts/phpup

Installs IonCube, Zend Optimizer, SuHosin & eAccelerator
Code: [Select]
/scripts/phpextensiomgr

Rebuilds /etc/named.conf with zones from /var/named/*.db
Code: [Select]
/scripts/rebuildnamedconf

Restart script for services
Code: [Select]
/scripts/restartsrv_$servicename

Restores an account from a backup file (pkgacct file)(must be in /home)
Code: [Select]
/scripts/restorepkg

Update logs of all users
Code: [Select]
/scripts/runlogsnow

Update stats for a particular user
Code: [Select]
/scripts/runweblogs

Secures /tmp partition with options nosuexec and nosuid
Code: [Select]
/scripts/securetmp

Suspends an account
Code: [Select]
/scripts/suspendacct

Unsuspends a suspended account
Code: [Select]
/scripts/unsuspendacct

Updates cpanel to the latest version
Code: [Select]
/scripts/upcp --force

Updates the cpanel scripts
Code: [Select]
/scripts/updatenow

Updates /etc/userdomains entries from /var/cpanel/users
Code: [Select]
/scripts/updateuserdomains

To create new accounts (wwwacct domain.com user password)
Code: [Select]
/scripts/wwwacct