EZ Linux Admin random header image

Getting a md5sum error when tranferring a cpanel account?

March 3rd, 2010 by EZ linux · No Comments

This usually means you need to upgrade Perl on the server. Here is a example of a md5sum error.

The remote server didn’t report a correct md5sum of the archive. Please ensure you selected the correct type of remote server.

To fix upgrade Perl as shown here:

http://www.ezlinuxadmin.com/2009/08/upgrading-perl-on-cpanel/

→ No Comments Tags: Cpanel and WHM · Linux Commands · Linux Software / Scripts


My new favorite rsync command

March 3rd, 2010 by EZ linux · No Comments

rsync -vae ssh 12.123.123.123:/home/dwhsbackup/daily/username/ /backup/cpbackup/daily2/username/ –bwlimit=10000 –exclude-from ‘/root/exclude.txt’

→ No Comments Tags: Linux Commands · Linux Software / Scripts · Linux Tricks


Calm down rsync if it overloads your IO memory or CPU

March 3rd, 2010 by EZ linux · No Comments

The trick is to limit I/O bandwidth for rsync.

The –bwlimit option limit I/O bandwidth. You need to set bandwidth using KBytes per second. For example, limit I/O bandwidth to 10000KB/s (9.7MB/s), enter:

rsync –delete –numeric-ids –relative –delete-excluded –bwlimit=10000 /path/to/source /path/to/dest/?

10 megs a second is plenty of speed and will keep the server running smoothly when your grabbing allot of files off of it.

→ No Comments Tags: Cheat Sheets · Linux Commands · Linux Security · Linux Software / Scripts · Linux Tricks


rsync running slow?

March 3rd, 2010 by EZ linux · No Comments

Today I was transferring files through rsync it was taking forever, my guess was the new server or old server was out of memory so I killed some procs and even rebooting the server but still it was crawling. So I thought I would think out of the box and after a couple trial and errors I tried a nic reboot and wow it was super fast from there.

/etc/init.d/network restart

I’m still not sure how the nic got blogged up but this worked like charm.

→ No Comments Tags: Hardware · Linux Commands · Linux Tricks


All cpanel server should have the /var tmp folder symlinked to /tmp

March 2nd, 2010 by EZ linux · No Comments

Here is how, first remove the /var/tmp folder

rm -rf /var/tmp

Then add the symlink:

ln -s /tmp /var/tmp

→ No Comments Tags: Linux Images


Free /usr partition space by a symlink to domlogs

February 10th, 2010 by EZ linux · No Comments

First move the domlogs folder to the backup partition:

mv /usr/local/apache/domlogs /backup

Then create a symbolic link to it:

ln -s /backup/domlogs /usr/local/apache/domlogs

→ No Comments Tags: Linux Commands · Linux Tricks


Default MYSQL port

February 9th, 2010 by EZ linux · No Comments

The default MYSQL port is:

3306

→ No Comments Tags: Cheat Sheets · Linux Security · Ports


Path to PHP CLI in CPanel

February 9th, 2010 by EZ linux · No Comments

PHP CLI is installed by default by CPanel and placed in:

/usr/local/bin

or

/usr/bin

→ No Comments Tags: Cpanel and WHM · Linux Software / Scripts


Location of SSL certs and keys for CPanel and users

February 9th, 2010 by EZ linux · No Comments

I was tracking down the location for each users SSL on a CPanel based server and wanted to post the locations here since they are a little off the beaten track. This is good to have around for when you want to clean out old certs and keys that are just jumbling your SSL trackers.

Here is the ssl key and certificate locations on a cpanel based server:

/usr/share/ssl/private
/usr/share/ssl/certs

If you still need to buy a SSL cert please consider the non-profit SSLCA

→ No Comments Tags: Cpanel and WHM · Linux Security


Who command

February 4th, 2010 by EZ linux · No Comments

This command will show who is logged into your system.

who

→ No Comments Tags: Linux Commands