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’ …
Category: Cloud Linux
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 — …
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 …
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 …
How to change the color of your BASH prompt
How to change the color of your BASH prompt You can change the color of your BASH prompt to green with this command: export PS1=”\e[0;32m[\[email protected]\h \W]\$ \e[m” It will change the colour of bash temporarily. To make it permanent then add code in bash_profile page. vi ~/.bash_profile and paste above code save the file and you …
Uninstall Cloudlinux from cpanel
You can always uninstall CloudLinux. In this case, we will ‘convert’ the system back to CentOS. Even if the original system was RHEL — we will still convert to ‘CentOS’ state. To uninstall CloudLinux follow below steps: wget -O cldeploy http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy sh cldeploy -c Please, note that some of the packages from CloudLinux repo will still be …
How to Uninstall MySQL Governor
How to Uninstall MySQL Governor Run the below commands to uninstall MySQL Governor /usr/share/lve/dbgovernor/install-mysql.py –delete yum erase db-governor db-governor-mysql
Upgrading MySQL Governor on CPanel, Plesk and DirectAdmin server
Upgrading MySQL Governor on CPanel, Plesk and DirectAdmin server Run the below command to update MySQL Governor yum update db-governor db-governor-mysql –enablerepo=cloudlinux-updates-testing Run the below command to restart the service service db_governor restart
MySQL Governor installation in without control panel server
MySQL Governor installation in without control panel server Run the below command to install MySQL Governor in plain server or without control panel server. yum install db-governor –enablerepo=cloudlinux-updates-testing yum update mysql-server mysql-devel mysql –enablerepo=cloudlinux-updates-testing Add the below line in my.cnf with root password [dbgovernor] Run the below command to start. service db_governor restart
How to install MySQL Governor on CPanel, Plesk and DirectAdmin
How to install MySQL Governor on CPanel, Plesk and DirectAdmin MySQL governor is set of utilities to monitor and restrict MySQL usage in shared hosting environment. The monitoring is done via USER_STATISTICS table that is available in CloudLinux version of MySQL as well as via tracking of slow queries. To install MySQL governor on cPanel server …