Common cPanel scripts Print

  • #cpanel, #whm, #sysadmin#system administration#system engineer#compsci#computer
  • 0

Common cPanel scripts

Listed below are common cPanel scripts. These can be located under /scripts:

  • adddns - Add a DNS zone

  • addpop - Add a POP account

  • addservlets - Add JSP support to a domain (requires Tomcat)

  • adduser - Add an user to the system

  • apachelimits - Calculates memory limits for Apache processes then adds to httpd.conf

  • biglogcheck - Looks for logs nearing 2 Gigabytes in size

  • bsdcryptoinstall - Installs Crypto on FreeBSD

  • bsdldconfig - Configures the proper lib directories in FreeBSD

  • bsdpkgpingtest - Tests the connection speed for downloading FreeBSD packages

  • buildbsdexpect - Install expect on FreeBSD

  • buildeximconf - Rebuilds exim.conf

  • buildpostgrebsd-dev - Installs postgresql on FreeBSD

  • chpass - Change cPanel passwords (does not change all passwords)

  • cleandns - Removes domains from named.conf that do not have a Zone

  • courierup - Used to update/reinstall Courier

  • cpbackup - To backup accounts (if backups enabled) (--force)

  • dnscluster - Used to synchronize DNS zones with clustered servers (--help)

  • dumpstor - Displays contents of .datastore storable files

  • dumpgdbm - Displays contents of .gdbm locale files

  • easyapache - Recompile/Upgrade Apache and/or PHP

  • editquota - Used to manually set a users quota limit

  • ensure_vhost_includes - Ensures users includes are added in httpd.conf

  • fixcommonproblems - Fixes Mailbox permissions, Mailman, CGI scripts, ndc and quotas

  • fixmailman - Fixes common Mailman issues

  • fixndc - Fixes rndc errors with named

  • fixquotas - Fixes quota problems

  • fullhordereset - Resets Horde database to a fresh one. All previous user data is lost.

  • ftpup - Used to Update/Install FTP server (Pure-FTPD or ProFTPD) to latest version

  • initquotas - Initializes quotas

  • installzendopt - Installs Zend Optimizer (through phpextensionmgr)

  • killacct - Terminate an account

  • killdns - Removes a DNS Zone

  • mailperm - Fixes permission problems with mail directories

  • makecpphp - Rebuilds internal PHP from /var/cpanel/easy/apache/profile/makecpphp.profile.yaml

  • park - To park a domain (only adds DNS)

  • pkgacct - Used to create an account backup

  • phpup - Used to update PHP only

  • phpextensiomgr - Installs IonCube, Zend Optimizer, SuHosin & eAccelerator

  • realchpass - Similar to chpass, changes cPanel password only

  • rebuildcpusers - chowns /var/cpanel/users files

  • rebuildnamedconf - Rebuilds /etc/named.conf with zones from /var/named/*.db

  • restartsrv $servicename - Restart script for services


  • restorepkg - Restores an account from a backup/pkgacct file (must be in /home)

  • runlogsnow - Update logs of all users

  • runweblogs - Update stats for a particular user

  • securetmp - Secures /tmp partition with options nosuexec and nosuid

  • setupftpserver - Sets which FTP server to install (Pure-FTPD or ProFTPD)

  • setupmailserver - Sets which mail service to install (Courier or Dovecot)

  • setupnameserver - Sets which DNS service to install (Bind or NSD)

  • suspendacct - Suspends an account

  • unsuspendacct - Unsuspends a suspended account

  • upcp - Updates cPanel to the latest version (--force)

  • updatenow - Updates the cPanel scripts

  • updateuserdomains - Updates /etc/userdomains entries from /var/cpanel/users

  • wwwacct - To create new accounts


Was this answer helpful?

« Back

Powered by WHMCompleteSolution


["\r\n