Important cPanel Scripts and Uses

Important cPanel Scripts and Uses

After the installation of cPanel/WHM, the cPanel provided scripts become available in your server’s “/usr/local/cpanel/scripts/” directory. You can run a cPanel script by entering its location on the command line.

# /usr/local/cpanel/script/upcp   –   To upgrade cPanel.

# /scripts/adduser wheel1 /home wheel@123 –  To add a wheel user.

# /scripts/mysqladduserdb mysqluser password  –  To add a mysql user.

# /scripts/cphulkdwhitelist IP-ADDRESS  –  To whitelist an IP in Cphulkd.

# /scripts/cphulkdblacklist IP-ADDRESS  –  To blacklist an IP in Cphulkd.

# /scripts/killacct username  –  To terminate a cPanel account.

# /scripts/suspendacct username  –  To suspend an account.

# /scripts/unsuspendacct username  – To unsuspend an account.

# /scripts/editquota username 512M  – To edit the cPanel user quota.

 

Service Management:

/scripts/restartsrv_*

You can replace any of the * symbol with any of the below mentioned services

eg: /scripts/restartsrv_apache

Apache – To restart Apache Web Server.

BIND – To restart the Bind nameserver software.

chkservd     – To restart cPanle’s Tail Watch log processing service.

clamd         – To restart the ClamAV antivirus software.

courier      – To restart the Courier mail server.

cpdavd      – To restarts cPanel’s WebDAV server.

cphulkd     –  To restart cPHulk.

cpsrvd       –   To restart the cpsrvd daemon.

crond         –    To restart the crond daemon.

dovecot      –    To restart the Dovecot mail server.

exim           –     To restart the Exim mail exchanger.

ftpd         –  To restart the configured FTP service (ProFTPd or Pure-FTPd).

httpd            –      To restart the Apache web server.

imap              –     To restart the IMAP server (Courier or Dovecot).

inetd          –   To restart the super-server daemon that manages Internet.

ipaliases          –    To restart the IP address aliasing software.

mailman            –    To restart Mailman.

mydns                – To restart the MyDNS server.

mysql                –  To restart the MySQL database server.

named               –   To restart the BIND nameserver software.

postgres            –   To restart the PostgreSQL database service.

proftpd              –  To restart the ProFTPd server daemon.

pureftpd            –   To restart the Pure-FTPd server daemon.

spamd               –   To restart the Apache SpamAssassin daemon.

sshd                   –  To restart the Secure shell daemon.

tailwatchd           –  To restart cPanel’s TailWatch log processing service.

tomcat                 –   To restart the Apache Tomcat service.

 

# /scripts/realperlinstaller   –  To install CPAN/perl modules extensions.

# /scripts/phpextensionmgr –  To install PHP extensions.

EAccelerator

IonCubeLoader

Zendopt

Xcache

SourceGuardian

PHPSuHosin

The above mentioned are some of the available PHP extensions. To install an extension   use the exact name.

eg : /scripts/phpextensionmgr install IonCubeLoader  – To install an extension.

#/scripts/phpextensionmgr uninstall IonCubeLoader – To uninstall an extension.

# /scripts/installruby  –  To install Ruby.

# /scripts/convert2courier  – To switch to Courier IMAP server.

# /scripts/convert2dovecot – To switch to Dovecot IMAP server.

# /scripts/gencrt  –  To generate CSR and Certificate file.

# /scripts/ipusage – To check the usage of IP addresses.

# /scripts/restorepkg  –  To restore backup

# /scripts/whoowns  –  To know the cPanel username of a domain.

# /scripts/updateuserdomains  –  To update the user:owner and user:domain tables  stored in /etc/userdomains and /etc/trueuser(owner, domains)

# /scripts/pkgacct  –  To genarate the backup of a cPanel account.

# /scripts/migrate_ea3_to_ea4 –run  –  To upgrade EasyApache3 to EasyApache4

# /scripts/migrate_ea3_to_ea4 –revert –run  – To downgrade  EasyApache4 to EasyApache3.

Please do reach our support department if you need any further help.

آیا این پاسخ به شما کمک کرد؟ 23 کاربر این را مفید یافتند (96 نظرات)