How to enable jailed shell/SSH access to CPanel user using command line.
To enable jailed shell or SSH access to CPanel user. You can run below command. chsh -s /usr/local/cpanel/bin/jailshell username Kindly replace username with CPanel username. It will show output like…
whmapi to add domain DNS using SSH
If you want to add the domain DNS then you can run below command. whmapi1 adddns domain='example.com' ip='192.168.1.20' Above command will add domain DNS with specific IP address.
whmapi to change cpanel user account password using SSH.
If you want to reset CPanel user account password using SSH then run below command. whmapi1 passwd user=username password=passwordtoreset Above command will change the password of the user. Kindly replace…
whmapi to list users accounts using SSH.
If you want to list the all the accounts username using SSH then run below command. whmapi1 list_users It will show list of all the accounts hosted on the server.…
whmapi to create and delete cPanel account using SSH
If you want to create the cPanel account using SSH then follow below instructions. whmapi1 --output=jsonpretty createacct username='elinux1234' domain='elinux.co.in' Kindly replace the username with the usrename you want and the…
WHM API to change the main account domain name from the SSH
If you want to change the cpanel hosting account domain name using SSH or whmapi then you can run below command. whmapi1 modifyacct user=username domain=newdomain.com Replace username with actual username…
Cloudlinux command to install ALT-PHP, Nodejs, Python from SSH
If you are in love with SSH or black screen and want to install Cloudlinux ALT-PHP, Nodejs or Python using SSH then you can use below command. cloudlinux-wizard install --json-data='{"cagefs":{"options":{"enable_for_new_users":false,"enable_for_existing_users":false}},"mod_lsapi":{},"mysql_governor":{},"php":{"options":{"enable_selector":true,"versions":}},"nodejs":{"options":{"versions":,"default_version":"10"}},"python":{"options":{"versions":,"default_version":"2.7"}},"ruby":{"options":{"versions":}}}'…
WHM API to suspend/unsuspend CPanel account
If you want to suspend the account using WHM API from SSH and mention the reason of suspension then use below command. whmapi1 suspendacct user=userame reason="Billing or Abuse complaint" replace…