Month: February 2022

Cloud Linux, CPanel / WHM

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 the username with actual username and password with the actual password with which you want to reset it. It wil show output like below [[email protected]

Cloud Linux, CPanel / WHM

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. It will show output like below: [[email protected] ~]# whmapi1 list_users — data: users: – abcded – dfgdfgdfg – dfgdfgdfg – rtytryrty – gfhjgfhj – fghfghfgh …

Cloud Linux, Control Panel, CPanel / WHM

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 domain name with the actual domain name. It will give output like: [[email protected] ~]# whmapi1 –output=jsonpretty \ > createacct \ > username=’elinux1234′ \ > domain=’elinux.co.in’ …

Cloud Linux, CPanel / WHM

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 and domain name with the domain name which you want to change. It will show output like below [[email protected] ]# whmapi1 modifyacct user=username domain=younewdomain.com — …

Cloud Linux

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”:[“4.4″,”5.1″,”5.2″,”5.3″,”5.4″,”5.5″,”5.6″,”7.0″,”7.1″,”7.2″,”7.3″]}},”nodejs”:{“options”:{“versions”:[“10″,”11″,”6″,”8″,”9″],”default_version”:”10″}},”python”:{“options”:{“versions”:[“2.7″,”3.7″],”default_version”:”2.7″}},”ruby”:{“options”:{“versions”:[“1.8″,”1.9″,”2.0″,”2.1″,”2.2″,”2.3″,”2.4″,”2.5″,”2.6”]}}}’ –no-async Above command will install PHP, Python and Nodejs versions on the server. Please modify the command as per your requirement to install mysql governor …

Cloud Linux, CPanel / WHM

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 username with actual cpanel username. If you want to unsuspend the account using WHM API from SSH. whmapi1 unsuspendacct user=username replace username with actual cpanel …