Category: cPanel – WHM

cPanel Server Managment

H
blank

How to change the primary IP addres of a WHM/cPanel server

This is for CentOS/RHEL based servers. Steps in WHM: Log into WHM and go to Basic cPanel & WHM Setup Change the Primary IP here with the option that says “The IP address (only one address)

W
blank

WHM – How To change NameServer Ip

The file that actually handles WHM > DNS Functions > Nameserver IPs area is at /var/cpanel/nameserverips.yaml location. If you want this to be changed, you’d want to make a backup of that file first and

F
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

c
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>

H
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

H
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

A
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

Moving From No Control Panel Servers to a cPanel Server

When I first started with my employer as a sysadmin I was given a long term goal: Move email services from our dedicated email server to cPanel Move website services from our dedicated web server

blank

Understanding cPanel clustered DNS and Setup

What is DNS and why do we care? DNS is the service that resolves domain names like sysadminspot.com to IP addresses. So instead of memorising all the possible IP addresses in the world and who

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. Last year, I wrote a

L
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. Hard reboot

H
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