Here is a handy report on how to reset your root password if you have console access. How to recover your lost root password In CentOS, it’s possible to have the scripts that run from the initramfs debug the shell at certain points, provide a root shell, and continue when that shell exists. First, reboot… Continue reading How to recover your lost root password in CentOS
Disable Remote MySQL in cPanel
The only way to do this is with root access to the cPanel core theme files. In paper_lantern, you can hide the icon by editing the theme config file. /usr/local/cpanel/base/frontend/paper_lantern/dynamicui.conf Search for remote MYSQL and remove the section there for the remote mySQL icon.
SolusVM login links
A lot of people get their root log in for their new SolusVM VPS and forget about the tools that are available in the SolusVM client area. Here is the SSL and standard VPS log in links. The log in username and password is sent in your welcome email normally or add a ticket with… Continue reading SolusVM login links
How to enable second level quotas on SolusVM with OpenVZ
Fixing already provisioned VMs What about VMs already provisioned? First, the container must be powered off, then issue the vzctl set “VMID” –quotaugidlimit 1000 –save. Note that “VMID” is a placeholder for the container ID. Then start the container and you will have the second quotas enabled for use. Fixing cPanel Quotas Once you have… Continue reading How to enable second level quotas on SolusVM with OpenVZ
How do I get the size of a directory on the command line?
du -sh file_path Explanation du command estimates file_path space usage The options -sh are (from man du): -s, –summarize display only a total for each argument -h, –human-readable print sizes in human readable format (e.g., 1K 234M 2G) To check more than one directory and see the total, use du -sch: -c, –total produce a… Continue reading How do I get the size of a directory on the command line?
Update, sync, activate, a cPanel license
If your cPanel license is out of sync you just have to run this one command from the root of your server. This will update your cpanel license and resync it with the cpanel servers. /usr/local/cpanel/cpkeyclt