Execute cPanel scripts from SSH
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:
Some common files and their usageYou can run any of the files presented in /scripts directory.
addns - add a dns zone
addfpmail - add frontpage mail extensions to all domains without them;
addfpmail2 - add frontpage mail extensions to all domains without them;
addnetmaskips - add the netmask 255.255.255.0 to all IPs that have no netmask;
addnobodygrp - adds the group nobody and activates security;
addpop - add a pop account;
addservlets - add JSP support to an account (requires tomcat);
adduser - add a user to the system;
betaexim - Installs the latest version of exim;
biglogcheck - looks for logs nearing 2 GB in size;
buildeximconf - rebuilds exim.conf;
chcpass - change cPanel passwords;
easyapache - recompile/upgrade apache and/or PHP;
exim4 - reinstall exim and fix permissions;
fixcommonproblems - fixes most common problems;
fixfrontpageperm - fixes permission issues with frontpage;
fixmailman - fixes common mailman issues;
fixnamed - fixes common named issues;
fixndc - fixes rndc errors with named;
fixquotas - fixes quota problems;
fullhordereset - resets horde database to a fresh one and all previous user data are lost;
initquotas - initializes quotas;
installzendopt - installs Zend Optimizer;
killacct - terminate an account, just make sure you take a backup of the account first;
mailperm - fixes permission problems with inboxes;
park - to park a domain;
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;
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.
Was this answer helpful?
cPanel/WHM installation is easy and straightforward. Login to the client area; At the top menu...
Ejabberd is a high-performance Jabber/XMPP server, written in erlang. It comes with a built-in...
Use any one of the following commands to install rsync. If you are using Debian or Ubuntu Linux,...
To install OpenVPN AS software in CentOS / Debian operating systems, perform the steps below....
All Storage Servers is activated with pre-installed special OS template - "Filer (CentOS 6,...