smartctl -q errorsonly -H -l selftest -l error /dev/sda Simply run this from root, if there is no output than you have not tripped SMART yet.
Centos 6 and above now has an easy to use command to change the hostname of your server. Simple type: hostname (newhostnamehere) Replace (newhostnamehere) with what you want the hostname to be. It’s nice when things are actually simple, good Continue Reading
There is no plug ins in WordPress to bulk fix your permissions. That is why this little script was made. The trick is you have to run it from the root of the server which in most cases your hosting Continue Reading
CryptPHP PHP malware has a become a nightmare for WordPress owners. Hacking millions of websites with it and getting web hosts listed in CBL effecting other web hosting accounts that did nothing wrong. It’s a vicious loop unfortunately that blacklists like Continue Reading
To compress a file or folder with tar run this: tar -cvf archive-name.tar directory_name To extract a file or folder with tar run this: tar -xvf archive-name.tar
If you want to change the language the user root uses by command in Centos you need to run this: export LANG=en_GB.UTF-8 This is for English if you want another language you need to change this to your language; en_GB
Some scripts like WordPress and Joomla can leave a big error_log files that no one will ever look at. Try opening a 30mb log file with Word and see what happens. In most cases you can just remove this file with a Continue Reading
If a customer happens to delete their emails you can still retrieve them from the cpanel backup system. This will take root access to move the files from the backup folder tot he customers account. You can extract a backup Continue Reading
You can modify the following option in “WHM Home » Server Configuration » Tweak Settings” under the “Stats and Logs” tab: “The interval, in days, to retain Exim stats in the database” Reducing this value will decrease the amount of Continue Reading
This simple command will list the inodes used for any group on the server: repquota -a | head -n5 ; repquota -a | grep username Just replace where it says “username” with the group or username you want to check.