Category: cPanel – WHM

cPanel Server Managment

blank

Fix corrupted RPM database on CentOS 5

If rpm / yum command hangs during operations or you see error messages – it means your rpm database corrupted. /var/lib/rpm/ stores rpm database just delete the same and rebuild rpm database: Command to rebuild rpm database rm -f /var/lib/rpm/__db* rpm --rebuilddb -v -v…
blank

cPanel transfer restore error

Forcing the restore of a transfered cPanel account , even if the new system says the username is all ready in use /scripts/restorepkg –force –skipres <account.tar.gz>…
blank

How to install CPAN libwww-perl

When installing the CSF  firewall on your CentOS server, you need to make sure that you have libwww-perl installed This is easily done by installed it with yum on CentOS 5 yum install perl-libwww-perl…
blank

How to remove Tomcat on cPanel

Want to remove Tomcat from cPanel? Log-into your server as root using ssh: Execute the following command to stop the Tomcat process: # /usr/sbin/stoptomcat …and to remove the next files, enter: # rm -f /usr/sbin/starttomcat # rm -f /usr/sbin/startomcat # rm -f /usr/sbin/stoptomcat Finally, remove all mod_jk lines from httpd.conf,…
blank

Apache logs

Issues with suhosin or mod_security , then best check your Apache error logs tail -f /usr/local/apache/logs/error_log…
blank

Writing a Multi-Server Load Average Monitoring Script in Under 10 Lines of PHP

Mostly the XML API is used for account management; however, there are other features in it that simplify system administration. The most obvious of these functions is the loadavg call.…
blank

Linux server tip: force reboot/shutdown

Forcing reboot A Linux Server is not Windows XP and if reboot fail you usually still connect by SSH and do something. This commands will show you how to remotely hard reboot machine.…
blank

How can I repair corrupt MySQL tables?

How can I repair corrupt MySQL tables? Every so often, MySQL tables have a way of corrupting themselves. MySQL offers a quick and painless method of repairing those tables.…
blank

How to mount and unmount a drive in linux

How To Mount A Drive In Linux This simple step by step guide will show you how to mount a new hard drive or partitions onto your Linux server…
blank

Linux sub directory size info

Need to know the exact size of your subdirectories in Linux? Just go to the directory , like cd / and try this du -cksh *  …