Category: CPanel / WHM

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, 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 …

CPanel / WHM, WordPress

WordPress file upload giving: Missing a temporary folder error

How to Fix “Missing a Temporary Folder” Error in WordPress WordPress Missing a Temporary Folder error prevents you from updating themes and plugins, uploading files and images, and even bringing up to date the WordPress core. Here, we will help you solve this issue easily. By the end of this article, your WordPress will be up and …

CPanel / WHM

Resetting email account password from Command line in cPanel

Resetting email account password from Command line in cPanel 1) Login to the server as root via SSH 2) Run the command “openssl” and you will see this: [email protected] [~]# openssl OpenSSL> 3) Now in the OpenSSL prompt give the command : passwd -1 “your_new_email_password” [email protected] [~]# openssl OpenSSL> passwd -1 “[email protected]” $1$m4pq941w/j$1KYI5VwHl8C6h9H6ScTFNWy/ OpenSSL> quit Please note …

CPanel / WHM, Installation

cPanel EasyApache 4 Installing Redis and Redis PHP extension

cPanel EasyApache 4 Installing Redis and Redis PHP extension Installing the Redis daemon: for CentOS 6/RHEL 6 rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm yum -y install redis –enablerepo=remi –disableplugin=priorities chkconfig redis on service redis start for CentOS 7/RHEL 7 rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm yum -y install redis –enablerepo=remi –disableplugin=priorities systemctl enable redis systemctl …

CPanel / WHM, Installation, Uncategorized

command to activate VG on LVM?

Command to activate VG on LVM? When you create a volume group, by default, it is activated. Sometimes you may need to activate it manually to make the kernel aware of volume groups. To activate, # vgchange -ay my_vg_name To De-activate, # vgchnage -an my_vg_name A command to activate the VG in a cluster? To …

Control Panel, CPanel / WHM, Tweaks

Optimize MySQL & Apache on cPanel/WHM server

Optimize MySQL & Apache on cPanel/WHM server On this optimization process, we will go over the Apache core configuration and modules that are part of Apache core. We think that with the correct settings of Apache and MySQL you can get excellent results and the correct level of resource use without installing third-party proxy and cache modules. …