Routinely Scanning Recently-Modified Files using ClamAV

virus_detected

It’s important to ensure system is kept virus-free, whether it be a server, workstation, or personal desktop computer. This tends to be easier with windows as we’re all familiar with the mountain of free and paid anti-virus programs available. You simply install one and it usually scans and monitors your system on its own. There are some options like this for Linux, but generally, as with any Linux system, you get many more configuration options to have it run how you want it to.

Apache Error “No space left on device: Couldn’t create accept lock”

agt_action_fail1

We ran in to this issue earlier this morning. One of our web servers started hit heavily with spam in the form of automated web posting bots. Since we are hosting forums, 99.9% of the load was centered around MySQL. To quickly stop the spam without having to wait an hour for MySQL to shut down, we ran a “killall -9 httpd” to stop all new incoming web requests and existing request from processing.

CPanel Override Memory Requirement, Install with 512MB

memory

I recently replaced one of our cPanel DNS-only nameservers. Typically we run our DNS servers with 512MB of memory, because why would a simple DNS server need any more than that? I was shocked to see that cPanel, even the free DNS-only version, now requires 768MB of memory if you’re using CentOS7/RHEL6 or 1GB if you’re using CentOS7/RHEL7. If you are like us and are using a VPS to host your DNS, this can double your cost spent to maintain your DNS servers.

Nginx Split Proxy Cache Across Multiple Drives

ssd_slick_drives_remake_icon

One of the websites we run serves a massive amount of static content. However, each page request needs to query a MySQL database to retrieve the storage location of the files. To reduce the load on our servers, we implemented an Nginx reverse proxy with caching. As our site grew, we quickly outgrew the system we were hosting the proxy on. At its peak time of day, this site is now serving over 600 requests per second for small image files averaging 15KB each. This is generating a massive amount of disk IO to the point where the disk was pegged at 100% utilized all the time, and starting to impact performance.

Installing ClamAV Anti-Virus on CentOS 7

virus_detected

ClamAV is an open source anti-virus utility for Linux designed to detect viruses, malware, and our favorite – php script exploits. It does a great job at picking up php files containing backdoors, remote file managers, spam mailer bots, etc. We run this on all of our hosting servers daily. It is especially useful for detecting and removing files uploaded by the numerous exploitable Wordpress 3rd party plugins.

Dell DRAC 5 with Java 1.8 “Error when reading from SSL socket connection”

java

We recently began connecting the IPMI/remote access cards in our server farm. The remote access cards are a separate ethernet port that is always on, even when the server is powered off. You can connect in to this interface using your web browser to monitor the server’s status and issue minimal commands, such as power on and open a remote console. Because most of our servers are based on the Dell PowerEdge 1950 and PowerEdge 2950, they are running some slightly-older cards, the Dell DRAC 5.