frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Execute cPanel scripts from SSH

JustinJustin Member
edited September 2019 in Web hosting control panels
Here are the scripts provided by cPanel that you can use to automate, configure, fix some issues or install some components. Note that in order to run these scripts, you need root access. The scripts are located in /scripts directory.

Just login as root through SSH. Browse to /scripts directory:

cd /scripts

Some common files and their usage


You can run any of the files presented in /scripts directory.

addns - add a dns zone;

addpop - add a pop account;

addservlets - add JSP support to an account (requires tomcat);

adduser - add a user to the system;

autorepair - starts automatic service fixer;

biglogcheck - looks for logs nearing 2 GB in size;

buildeximconf - rebuilds exim.conf;

chpass - changes the password of specific account;

cleansessions - removes session files;

cpbackup - backups all accounts;

cphulkdwhitelist - whitelists specified IP;

cphulkdblacklist - blacklists specified IP;

easyapache - recompile/upgrade apache and/or PHP;

fixmailman - fixes common mailman issues;

fixndc - fixes rndc errors with named;

fixquotas - fixes quota problems;

initquotas - initializes quotas;

installzendopt - installs Zend Optimizer;

mailperm - fixes permission problems with inboxes;

pkgacct - used to backup an account;

restartsrv - restart script for services;

restorepkg - restores an account from a backup file (pkgacct file);

runlogsnow - update logs of all users;

runweblogs - update stats for a particular user;

securetmp - secures /tmp partition with options nosuexec and nosuid;

setupftpserver - starts setup of ftp server;

simpleps - shows process list;

sysup - updates RPMs;

suspendacct - suspends an account;

unsuspendacct - unsuspends a suspended account;

upcp - updates cPanel to the latest version;

updatenow - updates the cPanel scripts;

updateuserdomains - updates userdomain entries.passw







Sign In or Register to comment.

Time4VPS

Learn how to install a web and database server, email, FTP client or other applications. Discover and share information on server security or optimization recommendations.
Feel free to join our constantly expanding community, participate in discussions, strengthen your knowledge on Linux and Windows server management!
© 2013 - 2024 Time4VPS. All rights reserved.

Get In Touch