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.
Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog
CloudLinux is a lightweight, popular and powerful Linux distribution for servers and workstations running the Cpanel control
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.
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…
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.…
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…
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…
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":}}}'…
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…
You can use the lsof (List Open Files) command to list the processes that are currently writing to the hard drive. The lsof command shows information about files that are…