Month: January 2010

Running Easyapache upgrades PHP

Please take note; Running easyapache via cpanel scripts will automatically default to PHP 5.3.1 during the build. EA automatically checks 5.3 as the default php regardless of the current version. Do NOT upgrade to 5.3.1 unless you have investigated the upgrade with your existing code. It has deprecated many functions and can break a good…


SpamAssassin Bug

This is a notification received from Cpanel regarding a bug found in SpamAssassin. The Quality Assurance team discovered a bug within the SpamAssassin ruleset that will mark messages sent in the year 2010 (that’s today) and beyond with a higher spam score than expected. This bug can result in legitimate mail being flagged as spam….


Resolving DNS Issues

When you come across an issue with DNS, it can be very frustrating, to say the least. We will not go in depth regarding bind or how DNS resolution happens, because it would take a large tome, bound in leather, of at least 1200 pages, weighing at least 75 pounds to contain it all. We…


Third Party Apps for cPanel/WHM

:::Pulled from the Cpanel Forums::: Third Party Applications Available for cPanel/WHM I have created this list about third party software available for cPanel/WHM based on popular demand. This is for informational purposes only and does not constitute any endorsement. All items are listed alphabetically to show no preference. If you know of any third party…


Disable ProFTP on CentOS running Plesk

Let me start off by stating unequivocally that I do not like Plesk. I do not like it sam I am, I want to break it with a wham, I would not, could not, on a box. I could not, would not, with firefox. Would you like it here or there? I would not like…


AllmyApps – An alternative to Ninite

Allmyapps is a cross-platform application store featuring a unique 1 click application installation technology compatible with both Windows and Linux operating systems. From this page you can choose among all allmyapps compatible operating systems the one for which you want to find software applications. By default, allmyapps automatically detects the OS you’re using so that…


Locate all non-Red Hat-supplied packages

Here is a snippet of code which will allow you to find all non-Red Hat-supplied packages: rpm -qa –qf ‘%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH} %{VENDOR}\n’ | grep -v ‘Red Hat, Inc\.’ | sort


Who’s connecting to Apache?

Here are a few more one liners that I use quite often to locate large number of apache connections, large numbers of site connections, the busiest site on the server and busiest script on the server. large number of apache connections netstat -plan | grep :80 | awk ‘{print $5}’ | sed ‘s/:.*$//’ | sort…


Pick an IP address out of any file

Here is a small one liner which will pull a list of IP addresses from a file, sort them, select only unique ip’s and then list them from greatest to least. perl -ne ‘while (/([0-9]+\.){3}[0-9]+/g) {print “$&\n”};’ /var/log/exim_mainlog |uniq -c |sort -nr |head -100 You can also modify this to include an output file by…


Auto Block connections via IP tables

Auto block IP’s with high connection counts via iptables; via lovepig.org netstat -npa –inet | grep :80 | sed ‘s/:/ /g’ | awk ‘{print $6}’ | sort | uniq -c | sort -n | while read line; do one=`echo $line | awk ‘{print $1}’`; two=`echo $line | awk ‘{print $2}’`; if [ $one -gt 100…