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.
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.
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!
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.
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:
These are some useful SMART and 3ware RAID commands.
Port Bonding Setup
Port bonding allows you to combine two ports to allow more throughput for your server
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 [...]
You can search for a process keyword such as the abuser’s username. This will let you see where the process originated.
abuser=”someuserhere” && for d in `ps aux | grep $abuser | grep -v grep | awk ‘{print $2}’`; do ls -la /proc/$d | grep cwd; done
If HTTPS pages are not loading for valid SSL hosts that you see in WHM you should make sure Apache is running with SSL:
# ps aux | grep -i httpd
You should see -DSSL as a part of the HTTPD process. If you don’t run:
# killall -9 httpd
# service httpd startssl