Databases showing 0MB in cPanel

Databases showing 0MB in cPanel  From command line 1. Run the command. # /usr/local/cpanel/bin/setupdbmap 2. Edit cPanel configuration file. disk_usage_include_sqldbs=1 ( you need to set it to ‘1’ if ‘0’ ) in file /var/cpanel/cpanel.config 3. Run the following script. #/scripts/update_db_cache You can also enable this from the WHM control panel. WHM >> Server Configuration >> […]

See More

OpenVZ commands and its usages

10+ Commonly using OpenVZ commands and its usages 1, Command to list the running VPSs in a node # vzlist Example: # vzlist CTID NPROC STATUS IP_ADDR HOSTNAME 106 104 running xx.xx.xx.xx server1.test.com 107 46 running xx.xx.xx.xx server2.test.com 108 83 running xx.xx.xx.xx server3.test.com 109 86 running xx.xx.xx.xx server4.test.com 2, Command to list running and stopped […]

See More

Mass ownership and permission change – Linux – Find command

How to change the permission of files and folders? Use chmod along with -exec to change the permissions. # find ./ -type f -exec chmod 777 {} \; this command changes all files permission to 777 in PWD. Use “-type d” for directory! How to change ownership? That’s simple. Use the chown command within the […]

See More