November 24, 2020
Complete full list of cPanel scripts under the /scripts directory

Complete full list of cPanel scripts under the /scripts directory

Sponsored
cp1132cta

If you’re a cPanel System Administrator you have probably seen or used one of the scripts included with cPanel/WHM under the /scripts directory. Below i’m working on creating a complete list of all cPanel scripts and what they do.

This is a work in progress. I’m going to go through all the scripts and test them to determine any arguments or unknowns. Working on some way to format as well, stay tuned.

Add a DNS zone.

/scripts/adddns

Add frontpage mail extensions to all domains without them.

advertisement:
smyles 56 7
sMyl.es

/scripts/addfpmail

Add frontpage mail extensions to all domains without them.

/scripts/addfpmail2

Add the netmask 255.255.255.0 to all IPs that have no netmask.

/scripts/addnetmaskips

Adds the group nobody and activates security.

/scripts/addnobodygrp

Add a Pop Account.

/scripts/addpop

Add JSP support to an account (requires tomcat).

/scripts/addservlets

(Internal use never called by user).

/scripts/addstatus

Add a user to the system.

/scripts/adduser

Run WHM Lite.

/scripts/admin

Add rlimits to Apache

/scripts/apachelimits

Installs the latest version of exim.

/scripts/betaexim

looks for logs nearing 2 gigabytes in size

/scripts/biglogcheck

Installs crypto on FreeBSD.

/scripts/bsdcryptoinstall

Configures the proper lib directories in FreeBSD.

/scripts/bsdldconfig

Tests the connection speed for downloading FreeBSD packages.

/scripts/bsdpkgpingtest

Install expect on FreeBSD.

/scripts/buildbsdexpect

Rebuilds exim.conf.

/scripts/buildeximconf

Installs postgresql on FreeBSD.

/scripts/buildpostgrebsd-dev

Checks /usr/local/apache/conf/httpd.conf for bad users.

/scripts/checkbadconf

Checks and repairs proftpd ownership on FreeBSD.

/scripts/checkbsdgroups

Checks to make sure the C compiler works on your system.

/scripts/checkccompiler

Checks for the FrontPage suid key

/scripts/checkfpkey

Checks to see if GD is built.

/scripts/checkgd

(Internal use).

/scripts/checkinterchange

Checks to make sure the proper libssl symlinks exist.

/scripts/checklibssl

Checks to see if apache has reached the maximum clients allowed.

/scripts/checkmaxclients

Checks to see if the version of Perl on your system is old.

/scripts/checkoldperl

Checks to make sure rsync is up to date.

/scripts/checkrsync

Checks to see if mailman has been patched for suexec.

/scripts/checksuexecpatch

Checks to see if suspend pages are properly named.

/scripts/checksuspendpages

Makes sure up2date is set up properly (RedHat)

/scripts/checkup2date

Makes sure yum is set up properly.

/scripts/checkyum

Makes sure /usr/sbin/chown has a symlink to /bin/chown

/scripts/chkpaths

Change ownership of all users web space to them, which is useful for converting to suexec. Files owned by nobody are deleted.

/scripts/chownpublichtmls

Change password.

/scripts/chpass

Allows you to kill a process (used like killall).

/scripts/ckillall

Allows you to kill a process.

/scripts/ckillall2

Cleans up old bandwidth logs.

/scripts/cleanbw

Clean up named.conf.

/scripts/cleandns8

Cleans up old GD installs and reinstalls GD

/scripts/cleangd

Fix CPAN md5 problems.

/scripts/cleanmd5

cleans exim’s msglog

/scripts/cleanmsglog

Cleans up improper mySQL privileges.

/scripts/cleanupmysqlprivs

Disables the usage of compilers for unprivileged users.

/scripts/compilers

Converts mail from mbox to maildir format and installs courier impap and pop (cpimap is removed).

/scripts/convert2maildir

Updates/Installs Courier

/scripts/courierup

Runs backups.

/scripts/cpbackup

Upgrades RedHat to the newest version (for testing only)

/scripts/distupgrade

Enables DNS clustering.

/scripts/dnscluster

Adds a cron job to dump the DNS queue.

/scripts/dnsqueuecron

Only if the server has a DNS master (sync with DNS master).

/scripts/dnstransfer

Downgrades FrontPage Extensions (to 5.0-0)

/scripts/downgradefp

Drops a mySQL database.

/scripts/dropmysqldb

Upgrade Apache

/scripts/easyapache

Change a users quota.

/scripts/editquota

Enable service checking of webmaild.

/scripts/enablechkservdwebmail

Protects home directories if file protection is built in apache.

/scripts/enablefileprotect

Installs a FreeBSD package.

/scripts/ensurepkg

Installs a rpm.

/scripts/ensurerpm

Installs exim 3.

/scripts/exim3

Installs exim 4.

/scripts/exim4

Installs exim release #260. (RedHat only)

/scripts/exim4-rh73test

Creates a cron job for exim_tidy_db.

/scripts/eximcron

Enables/Disables exim local sending.

/scripts/eximlocalsend

Cleans the exim message log.

/scripts/exim_tidydb

Installs/Updates exim.

/scripts/eximup

Includes libg.so.

/scripts/fetchgd

Search for common Trojan Horses.

/scripts/findhacks

Lists root processes that may need to be checked out.

/scripts/findoddrootprocesses

Check to see if your php version file is up to date.

/scripts/findphpversion

Exhaustive Trojan Horse search.

/scripts/findtrojans

Fixes permissions on carts when using suexec.

/scripts/fixallcartswithsuexec

Fixes permissions on all users’ Interchange Shopping Carts.

/scripts/fixallinterchangeperm

Makes sure all bin file paths are correct.

/scripts/fixbinpath

Updates bind to solve any problems with bugs.

/scripts/fixbuggynamed

Attempt to fix the most common problems.

/scripts/fixcommonproblems

Fixes problems with /etc/hosts

/scripts/fixetchosts

Fix common problems and quotas.

/scripts/fixeverything

Fix for .wml errors with frontpage.

/scripts/fixfpwml

Run if nothing compiles errors with .h files on compile.

/scripts/fixheaders

Reinstall interchange Perl modules.

/scripts/fixinterchange

fix permissions on a user’s interchange cart.

/scripts/fixinterchangeperm

Same as addnetmask ips, but Perl though.

/scripts/fixipsnm

Reinstall Bundle::libnet (Perl).

/scripts/fixlibnet

Change /etc/hosts to work better with PHP 4.2.0 + MySQL.

/scripts/fixlocalhostwithphp

Updates and restarts mailman.

/scripts/fixmailman
/scripts/fixmailmanwithsuexec

Reinstalls muse.

/scripts/fixmuse

Fixes problems with mySQL.

/scripts/fixmysql

Fixes problesm with mySQL on FreeBSD.

/scripts/fixmysqlbsd

Updates bind to handle many DNS zones (more than 512).

/scripts/fixnamed

Repair redhat’s broken named.conf on 7.2.

/scripts/fixndc

Run after enabling suexec on the server to change the URLs that Mailman gives out to ones that don’t give a 500 internal server error.

/scripts/fixoldlistswithsuexec

Symlink /usr/local/bin/perl /usr/bin/perl.

/scripts/fixperl

Makes sure a perlscript includes all corresponding modules.

/scripts/fixperlscript

Fix a POP account and reset password.

/scripts/fixpop

Fixes problems with /usr/local/etc/proftpd.conf

/scripts/fixproftpdconf

Updates proftpd.

/scripts/fixproftpddupes

Fix quotas.

/scripts/fixquotas

Fixes named.conf to prevent rndc staus failed.

/scripts/fixrndc

Reinstalls a failed spamassassin update.

/scripts/fixspamassassinfailedupdate

Run if subdomain logs don’t show up in cPanel.

/scripts/fixsubdomainlogs

Fix CGI scripts that are broken after suexec installed.

/scripts/fixsuexeccgiscripts

Fix permisions on valiases.

/scripts/fixvaliases

Repair a Webalizer that has stopped updating.

/scripts/fixwebalizer

Updates the fpexe3 patch.

/scripts/fp3

Updates FrontPage extensions to include the anonymous user patch.

/scripts/fpanonuserpatch

Checks for FTPSSL.

/scripts/ftpcheck

Runs quota checking for all ftp users.

/scripts/ftpquaotacheck

Updates your ftp server.

/scripts/ftpup

Resets Horde and displays the current Horde password.

/scripts/fullhordereset

Fixes problesm with futex.

/scripts/futexfix

Starts futex.

/scripts/futexstartup

Installs gcc-3.3.3

/scripts/gcc3

Generate a .crt and .csr file.

/scripts/gencrt

Checks to see if grpck is working properly.

/scripts/grpck

Enable dma/irq/32bit HD access, which speeds up IDE drives.

/scripts/hdparmify

Turns on hdparm.

/scripts/hdparmon

Mounts your file systems with ACL support (make sure your kernel supports ACLs)

/scripts/initacls

Enable FrontPage suexec support.

/scripts/initfpsuexec

Turn on quota support on new drives.

/scripts/initquotas

Make sure HTTP starts with SSL.

/scripts/initsslhttpd

Turn on suexec support if suexec is installed.

/scripts/initsuexec

Installs CGI.pm

/scripts/installcgipm

Install Bundle::DBD::mysql.

/scripts/installdbi

Installs FrontPage 5 Extensions on FreeBSD.

/scripts/installfpfreebsd

Installs FrontPage on Gentoo.

/scripts/installfpgentoo

Builds GD.

/scripts/installgd

Install or update ImageMagick. (Verified 5/30/12 on 11.32.3)

/scripts/installimagemagick

Installs a FreeBSD package.

/scripts/installpkg

Installs PostrgeSQL.

/scripts/installpostgres

Installs a rpm.

/scripts/installrpm

Install SpamAssassin.

/scripts/installspam

Add a SSL vhost.

/scripts/installssl

Install zend optimzer.

/scripts/installzendopt

Install zend optimizer on a freebsd machine.

/scripts/installzendopt-freebsd

Checks an ip to see if it is dedicated.

/scripts/isdedicatedip

Delete an account.

/scripts/killacct

Security script that kills insecure RPMs from the server.

/scripts/killbadrpms

Delete a DNS zone.

/scripts/killdns

Removes the document root for a virtual host.

/scripts/killdrrootvhost

Remove the broken NDBM_File module from 7.2.

/scripts/killndbm

Removes a virtual host from proftpd.conf.

/scripts/killpvhost

Removes a spam key.

/scripts/killspamkeys

Removes a SSL entry for a virtual host.

/scripts/killsslvhost

Delete a vhost.

/scripts/killvhost

Checks mailing lists for issues.

/scripts/listcheck

Lists common problems.

/scripts/listproblems

List subdomains.

/scripts/listsubdomains

Fix almost any mail permission problem.

/scripts/mailperm

Updates MailScanner

/scripts/mailscannerupdate

Guided mail fix.

/scripts/mailtroubleshoot

Installs php.

/scripts/makecpphp

Part of DNS transfer.

/scripts/makesecondary

Updates cPanel manually.

/scripts/manualupcp

Encrypts a password into MD5.

/scripts/md5crypt

Sets up Mandrake’s msec to allow exim to run as mailnull.

/scripts/mseclocal

Create a MySQL databse and user.

/scripts/mysqladduserdb

Attempts to connect to MySQL, restarts SQL if necessary.

/scripts/mysqlconnectioncheck

Delete a MySQL database and user.

/scripts/mysqldeluserdb

Change MySQL password.

/scripts/mysqlpasswd

Checks your connection speed for downloading mySQL rpms.

/scripts/mysqlrpmpingtest

Updates mySQL.

/scripts/mysqlup

Checks to see if the nbdm module is loaded (kills in RedHat 7.2)

/scripts/ndbmcheck

Patches FTPSSL.pm.

/scripts/netftpsslpatch

Installs the latest version of exim.

/scripts/newexim

y

/scripts/nofsck - Make fsck always use

Removes mod_attach from httpd.conf.

/scripts/nomodattach

Removes mod_auth_mysql from httpd.conf.

/scripts/nomodauthmysql

Removes mod_bwportect from httpd.conf.

/scripts/nomodbwprotect

Removes mod_gzip from httpd.conf.

/scripts/nomodgzipconfmods

Removes mod_perl from httpd.conf.

/scripts/nomodperl

Updates old addons to X addons.

/scripts/oldaddoncgi2xaddon

Parks a domain.

/scripts/park

Fixes exim.conf.

/scripts/patcheximconf

Installs perl.

/scripts/perlinstaller

Create a php.ini file.

/scripts/phpini

Checks your download time from cPanel mirrors.

/scripts/pingtest

backs up an Alab*nza account for transfer.

/scripts/pkgaccount-ala

backs up a ci*ost account for transfer.

/scripts/pkgacct-ciXost

backs up a d*m account for transfer.

/scripts/pkgacct-dXm

backs up an en*im account for transfer.

/scripts/pkgacct-enXim

backs up a p*a account for transfer.

/scripts/pkgacct-pXa

Installs proftpd-1.2.8.

/scripts/proftpd128

Fixes permissoins on /dev/ptmx.

/scripts/ptycheck

Verifies the integrity of system authentication information.

/scripts/pwck

Updates your kernel.

/scripts/quickkernel

Quickly kill useless services.

/scripts/quicksecure

Rebuilds the cPanel SSL Certificate.

/scripts/rebuildcpanelsslcrt

Rebuilds /var/cpanel/users.

/scripts/rebuildcpusers

Rebuilds /etc/passwd.

/scripts/rebuildetcpasswd

Rebuilds exim on FreeBSD.

/scripts/rebuildeximbsd

Rebuild httpd.conf from the proftpd.conf file.

/scripts/rebuildhttpdconffromproftpd

Used after moving a domain with Interchange to the server.

/scripts/rebuildinterchangecfg

Restore named.conf from files in /var/named.

/scripts/rebuildnamedconf

Restore proftpd.conf from httpd.conf.

/scripts/rebuildproftpd

Reinstalls mailman.

/scripts/reinstallmailman

Relocates files from /var to /usr in case of disk space issues.

/scripts/relocatevartousr

Remove default SSL vhost.

/scripts/remdefssl

Resets exim’s default settings.

/scripts/reseteximtodefaults

Resets all imap passwords.

/scripts/resetimappasswds

Change quotas to what they should be .

/scripts/resetquotas

Restart a service.

/scripts/restartsrv

Restart apache.

/scripts/restartsrv_apache

Restart bind.

/scripts/restartsrv_bind

Restart clamd.

/scripts/restartsrv_clamd

Restart courier imap.

/scripts/restartsrv_courier

Restart cppop.

/scripts/restartsrv_cppop

Restart entropy chat.

/scripts/restartsrv_entropychat

Restart exim.

/scripts/restartsrv_exim

Restart exim statistics.

/scripts/restartsrv_eximstats

Restart your ftp server.

/scripts/restartsrv_ftpserver

Restart httpd.

/scripts/restartsrv_httpd

Restart impad.

/scripts/restartsrv_imap

Restart inetd.

/scripts/restartsrv_inetd

Restart Interchange Shopping Cart.

/scripts/restartsrv_interchange

Restart melange chat.

/scripts/restartsrv_melange

Restart mysqld.

/scripts/restartsrv_mysql

Restart named.

/scripts/restartsrv_named

Restart postgresql.

/scripts/restartsrv_postgres

Restart postgresql.

/scripts/restartsrv_postgresql

Restart proftpd.

/scripts/restartsrv_proftpd

Restart pure-ftpd.

/scripts/restartsrv_pureftpd

Restart spamd.

/scripts/restartsrv_spamd

Restart sshd.

/scripts/restartsrv_sshd

Restart syslogd.

/scripts/restartsrv_syslogd

Restart tomcat.

/scripts/restartsrv_tomcat

Restart xinetd.

/scripts/restartsrv_xinetd

Restores a user’s mail.

/scripts/restoremail

Restart whostmgr.

/scripts/reswhostmgr

Upgrade redhat/mandrake errata/security.

/scripts/rpmup

Installs RRD Tool.

/scripts/rrdtoolinstall

Runs statistics (should be used from the crontab).

/scripts/runstatsonce

Run analog/webalizer/etc. for a user.

/scripts/runweblogs

Installs perl safely.

/scripts/safeperlinstaller

Runs up2date safely.

/scripts/safeup2date

Runs yum safely.

/scripts/safeyum

Remove unnecessary suid binaries.

/scripts/secureit

Attempts to secure the MySQL configuration.

/scripts/securemysql

Adds securetmp to system startup.

/scripts/securetmp

Install FrontPage 3 on an account.

/scripts/setupfp

Install FrontPage 4 (2000) installer on an account.

/scripts/setupfp4

Install FrontPage 5 (2002) installer on an account.

/scripts/setupfp5

Install FrontPage 5 (2002) installer on an account when not using suexec.

/scripts/setupfp5.nosueuxec

Shows exe processes.

/scripts/showexelist

Display the process list.

/scripts/simpleps

Checks hard drive integrity.

/scripts/smartcheck

Enables SMTP Mail Protection.

/scripts/smtpmailgdionly

Disables SpamAssassin’s spambox delivery for all accounts.

/scripts/spamboxdisable

Suspends an account.

/scripts/suspendacct

update cPanel RPMs.

/scripts/sysup

Installs the latest version of bind patched to support greater than 512 ips on the server.

/scripts/unlimitnamed

Unblocks an IP blocked by portsentry.

/scripts/unblockip

Removes FrontPage 4 or 5 from an account.

/scripts/unsetupfp4

If the user accidentally sets a DNS master as local server, this will repair named.conf after the loop.

/scripts/unslavenamedconf

Unsuspends an account.

/scripts/unsuspendacct

Updates cPanel.

/scripts/upcp

Updates /scripts.

/scripts/updated

Updates FrontPage

/scripts/updatefrontpage

Updates /scripts NOW.

/scripts/updatenow

Updates PHP configuration files.

/scripts/updatephpconf

Finds out who owns a domain.

/scripts/whoowns

Creates an account.

/scripts/wwwacct

Reports the current addon scripts installed.

/scripts/xaddonreport
 
Source: sMyles
Sponsored