I spent hours trying to get mod_bandwidth to work simply because I have used it for years. But now with Apache 2.0 times have changed and there is a better option for Linux and it’s free. The new mod to regulate bandwidth and more is called Mod_cband I’m not sure what cband means but I [...]
Entries from March 2010
Mod_cband the new Mod_Bandwidth
March 29th, 2010 by EZ linux · 3 Comments
Tags: Cheat Sheets · Cpanel and WHM · Linux Security · Linux Software / Scripts · Linux Tricks
Raise apache 2.0 max clients hard limit in cpanel
March 23rd, 2010 by EZ linux · No Comments
Apache 2.0 makes raising the max client from the default 256 hard limit a little harder now. If you have cpanel then it’s even a little harder or I should you just need to know what to do, figuring it out is a shot in the dark. One main difference is you have raise the [...]
Tags: Cpanel and WHM · Linux Software / Scripts · Linux Tricks
Repair DNS scripts and tips
March 19th, 2010 by EZ linux · No Comments
Fixing DNS is a tricky thing, with cpanel there is a couple steps to try first. DNS failed you are not sure why, try this first: /scripts/cleandns /scripts/rebuildnamedconf Still not working, try this: /scripts/rebuilddnsconfig /scripts/fixdns Basically DNS has about 5 files that need to all be in sync for named DNS to run. I highly [...]
Tags: Cpanel and WHM · Linux Software / Scripts
How to do a search and replace over multiple files
March 18th, 2010 by EZ linux · No Comments
You could also use find and sed, but I find that this little line of perl works nicely. perl -pi -w -e ‘s/search/replace/g;’ *.php -e means execute the following line of code. -i means edit in-place -w write warnings -p loop Example I had the following style sheet in a section: <link rel=”stylesheet” type=”text/css” href=”../includes/style.css”> [...]
Tags: Cheat Sheets · Linux Commands
You don’t need to ‘know’ Linux to use Linux
March 18th, 2010 by EZ linux · 1 Comment
Lately, I’ve been noticing stories about how to use Linux you need to know half-a-hundred Linux shell commands and the like. Ah, what century are you from? Today, if you can see a window and handle a mouse, you’re ready to use Linux. And no, I’m not talking about how we’re all already using Linux [...]
Tags: About Linux · Linux News · Linux Operating Systems
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/
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’
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 [...]
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 [...]
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
Tags: Linux Images
