1. SSH into your server as root. 2. Run top. 3. Press shift + m. 4. Note the highest RES memory used by httpd. 5. Hit Q to exit top. 6. Execute: service httpd stop 7. Once httpd is stopped, execute: free -m 8. Note the memory listed under "used". 9. Find the guaranteed memory for your VPS plan. Support can tell you how much you have guaranteed if you cannot find it. 10. Subtract the … [Read more...]
Tracking CPU average load
To keep track of your system’s CPU load averages you will need to install the sar program. This program is usually found in the sysstat package. To install sysstat on Centos or Fedora type the following command as root: yum install sysstat Viewing statistics Type the following command to get today’s CPU load average statistics: sar -q | less The output of sar is piped to the … [Read more...]
Upgrade OpenSSH on CentOS 5
The commands below are the ones I used to install version 5.8 (the latest stable at the time of this post), but can essentially be used for any compatible version. First, download the OpenSSH source tarball from the vendor and unpack it. You can find the tarballs at http://www.openssh.com/portable.html wget http://mirror.mcs.anl.gov/openssh/portable/openssh-5.8p2.tar.gz tar -xvzf … [Read more...]
Check open ports on linux
There are multiple methods to see what ports are open in Linux. nmap can be used to scan your machine to see whats ports are open. Issue the following command to scan your computers machine: nmap -sS -O once the scan has finished you will get the following ouput: Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2005-01-16 05:48 GMT Interesting ports on localhost.localdomain … [Read more...]
How to configure DNS Clustering across all your WHM servers

Having a speedy and efficient nameserver setup for WHM servers is crucial for keeping the customers happy. More the nameservers you have better is the speed and efficiency. If you have at least two WHM servers, you can set up what is known as clusters. When a DNS change occurs on one of your main servers, that change will be replicated immediately to all the other servers in the … [Read more...]
How to install or remove a RPM on Linux
rpm is a powerful Package Manager for Red Hat, Suse and Fedora Linux. It can be used to build, install, query, verify, update, and remove/erase individual software packages. A Package consists of an archive of files, and package information, including name, version, and description To install a RPM rpm -ivh {rpm-file} Example # rpm -ivh webmin-1.560-1.noarch.rpm To upgrade a RPM rpm -Uvh … [Read more...]
Install RPMForge on Centos 5
RPMforge is a collaboration of Dag and other packagers. They provide over 5000 packages for CentOS, including wine, vlc, mplayer, xmms-mp3, and other popular media tools. It is not part of Red Hat or CentOS but is designed to work with those distributions. Packages are supplied in RPM format and in most cases are ready to use. The default RPMforge repository does not replace official CentOS … [Read more...]
Install and configure NTP to synchronize the system clock

You can easily install NTP (Network Time Protocol, a means of transmitting time signals over a computer network) using yum command under Redhat or CentOS/Fedora core Linux. Procedure Login as the root user # su - Use yum to install ntp # yum install ntp Turn on ntp as a service # chkconfig ntpd on Synchronize the system clock with 0.pool.ntp.org server: # ntpdate pool.ntp.org Start the … [Read more...]
Clone Windows 7 drive to a newer hard drive
Create A System Image In Windows 7 After you install and activate Windows 7 create a system image as a backup for your current computer in case you ever need to reinstall it. This will restore your computer to it's exact state when the image was made - that will save you the trouble of having to reinstall Windows 7 and everything currently installed again, and it takes much less time to … [Read more...]
Make Google Apps for Your Domain work with WHMCS
With this way, you can use multiple support departments despite Gmail rewriting the from address. I suggest reading the entire thing over first, then follow each step. This was last tested with WHMCS 4.5.2 Step 1 - Sign up for Google Apps A. Visit http://www.google.com/apps/intl/en/business/ and sign-up. For those of you in need of a free edition, use this … [Read more...]