Installing Linux Malware Detect on a VPS

This guide will walk you through installing LMD (Linux Malware Detect) on your VPS/Dedicated server. LMD is a great tool for protecting and cleaning malware. It is imperative to perform regular integrity check on your VPS or dedicated server. LMD is a great tool towards this goal.

You will need to be logged in as root to the server over SSH. The installation process is short and easy to complete.

Let's create a temporary directory and navigate into it, followed by downloading the latest release of maldet:

mkdir tmp
cd tmp
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz

Extract the archive containing LMD and navigate into the directory it creates:

tar xf maldetect-current.tar.gz && cd maldetect-1.4.1

Warning: Version may vary, you can check the current directory listing with the command `ls`

Once you're inside execute the install script:

./install.sh

This will automatically install a cronjob inside /etc/cron.daily/maldet as well, it will make LMD execute daily and scan local cPanel accounts for possible malware.

Usage is fairly simple, to scan user's home directory or any other directory you would simply execute:

maldet -a /home/user

Any path is alright.

Please note that LMD runs great with ClamAV, if you'd like to install ClamAV on a cPanel based server, it is safe to do so.

Setting up e-mail alerts:

LMD has an option to alert you each time it detects malware, please review these configuration variables inside /usr/local/maldetect/conf.maldet

Was this answer helpful?

 Print this Article

Also Read

Install nginx, MySQL, PHP (LEMP) stack on a CentOS 6 VPS

LEMP stack is a group of open source software to get web servers up and running. The acronym...

Setting Up a Full Webmin Sever on a CentOS VPS

This tutorial will cover the basic setup for a fully functioning web server using Webmin on a...

How to Setup Ruby on Rails on a CentOS or Fedora VPS

This tutorial will walk you through the setup of a basic Ruby on Rails environment, including:...

Installing htop on a CentOS VPS

If you want to install ‘htop’ (a very good Linux process viewer) onto a server...

How to Install VNC with GNOME Desktop on a Debian VPS

NOTE: Bitronic Technologies come pre-configured for VNC access, just click Product...