Finding warez to save wasted space on your server.

If you are in the shared hosting business you know that servers may contain warez or other copyright content stored in client accounts. This data is sometimes uploaded by users and sometimes uploaded by people exploiting one of your client’s scripts or weak passwords. Here is a simple command to find such data so you can investigate.

Basic hotlink protection .htaccess mod_rewrite scheme.

Hotlink protection can be very useful if you have a lot of people trying to hotlink to your images or files. Our article will show you a basic .htaccess mod_rewrite setup to block such hotlink protection for your domain.

Disable ModSecurity for a domain.

So you need to disable ModSecurity for a customer’s site. There are many reasons to do this, but generally it’s because the customer has a script that does not conform to your ModSecurity rules or keyword url matching. Don’t disable ModSecurity for the whole server, because it’s a great tool. Read this article instead!

Kill sleeping MySQL connections via shell.

Some servers may have a bug involving the MySQL version and Linux kernel versions used. In these cases some sites may generate sleeping mysql connections that do not die despite proper my.cnf configuration. There may be thousands of such connections after weeks of use. Eventually the performance is impacted though the connections are sleeping. A temporary solution would be to routinely kill sleeping connections.

Update / upgrade Perl on cPanel servers.

When a new version of Perl is available you may wish to upgrade for compatibility or security. Often you will be notified by cPanel of the need to upgrade. Our guide will show you how to do that.

Apache “semget: No space left on device” Semaphore Error Fix

Apache “semget: No space left on device”  Semaphore Error Fix:

Some times you may find Apache giving you ’semget’ errors in the error_log and failing to start/function. You can remedy this via the following script:

Connection code for DSN less MySQL connection with ASP pages.

Connection code for DSN less MySQL connection with ASP pages
Create a database connection in the .ASP code as follows:

3Ware CLI, SMART and FSCK Linux Disk Tools

These are some useful SMART and 3ware RAID commands.

Port Bonding on Linux & Network

Port Bonding Setup
Port bonding allows you to combine two ports to allow more throughput for your server

MySQL Collation/Fonts/Foregin Language Issues

Force Database Dump Restore To UTF-8:
mysql –default-character-set=utf8 database < database.sql
Jumbled Characters or Question Marks For Non-Latin Encoding:
This is a common problem for our international users. They use all kinds of languages which often do not display right when imported from lets say tis620 (thai) into utf8. So this is a step by step guide in [...]