Coders Tent

Syed Ashik Mahmud - Pro System Admin and Malware Cleaner

  • Home
  • About Me
  • Contact
  • DMCA
  • Home
  • About Me
  • Contact
  • DMCA
WHM Security

How to install MALDET Linux Malware Detect on cPanel Server?

October 2, 2026 April 24, 2022 coderstent

Maldet is a malware detector and scanner for Linux based servers a project designed by R-fx networks project. It can be installed on shared hosting servers like cPanel WHM and linux plesk servers which works along with Clamav tool.

1. Download & Install Maldet –

cd /usr/local/src
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
tar -xzvf maldetect-current.tar.gz

2. Go to the maldetect directory and run the installer script ‘install.sh’ as root:

cd maldetect-1.5
./install.sh

3. Next, make a symlink to the maldet command in the /bin/ directory.

ln -s /usr/local/maldetect/maldet /bin/maldet
hash -r

4. Configure Maldet, Install Nano editor if its not installed ( yum install nano ) –

cd /usr/local/maldetect/
nano conf.maldet

5. Enable email alert by changing the value to ‘1’.

email_alert=”1″

6. Set your email address .

email_addr=”[email protected]”

We will use the ClamAV clamscan binary as default scan engine because it provides a high-performance scan on large file sets. If its not installed you can install it using ( yum -y install clamav clamav-devel ) then update using ( freshclam ) command.

7. Change value to ‘1’ on line 114 – scan_clamscan=”1″

8. Next, enable quarantining to move malware to the quarantine automatically during the scan process. Change value to ‘1’ on line 180 – quarantine_hits=”1″

9. Change value to 1 on line 185 to enable clean based malware injections – quarantine_clean=”1″

10. Save and exit.

Use Real-Time Monitoring with Maldet for active monitoring.

The inotify monitoring feature is designed to monitor paths/users in real-time for file creation/modify/move operations. This option requires a kernel that supports inotify_watch (CONFIG_INOTIFY) which is found in kernels 2.6.13+ and CentOS/RHEL 5 by default.

There are three modes that the monitor can be executed with and they relate to what will be monitored, they are USERS|PATHS|FILES.
e.g: maldet –monitor users
e.g: maldet –monitor /root/monitor_paths
e.g: maldet –monitor /home/mike,/home/ashton

Only find PHP files on an account

maldet –include-regex “.*.php$” -a /home/pronyxco/public_html

Full account
maldet –include-regex “.*.php$” -a /home/?/public_html

maldet -a /home/?

Reference :
https://linuxcanban.com/how-to-install-linux-malware-detect/
https://www.linuxcapable.com/how-to-install-maldet-linux-malware-detect-on-debian-11-bullseye/

How to Install and configuration Maldet and Run a Scan


https://lionhost.gr/billing/knowledgebase/185/Maldet-Scan.html

continue reading
GeneralWHM Security

Error: “WARNING: RESTRICT_SYSLOG is disabled. See SECURITY WARNING in Firewall Configuration”

October 2, 2026 April 24, 2022 coderstent

If you are getting error “WARNING: RESTRICT_SYSLOG is disabled. See SECURITY WARNING in Firewall Configuration” after clicking on “configServer security

continue reading
Ashik Daily NeedWHM SSH

How to check Inode usage from cPanel and Command line?

October 2, 2026 August 5, 2022 coderstent

Check from SSH Login. Login to the server using ssh command. Ensure that you are at the home directory with

continue reading
General

How to increase the PHP Max Input Vars

October 2, 2026 January 22, 2020 coderstent

The PHP Max Input Vars is the maximum number of variables your server can use for a single function. To work properly

continue reading
WHM

How to enable/disable allow_url_fopen and allow_url_include functions

October 2, 2026 November 25, 2021 coderstent

allow_url_fopen: For security reason, in shared hosting account allow_url_fopen is disabled by default. If you want to enable this function,

continue reading
VPS Security

Installing and configuring ConfigServer Security & Firewall (CSF)

October 2, 2026 August 10, 2019 coderstent

Config Server Firewall (CSF) is a Stateful Packet Inspection (SPI) firewall, Login/Intrusion Detection and Security application for Linux servers. It's

continue reading
cPanelWHM

Script To Fix Permissions And Ownership, on files and Directories, for cPanel Accounts

October 2, 2026 May 1, 2023 coderstent

Fixing permission for a cpanel account doing manually is a difficult task. We can do it by running a script.

continue reading
Email Spam ControlGeneralVPS Security

How to Prevent Annoying Spam Outbreaks in cPanel and Plesk Servers

October 2, 2026 August 11, 2019 coderstent

Spam is not just annoying, but often a security threat. Cleaning up cluttered mailboxes is time-consuming and messages are often

continue reading
WHMWHM ISSUE FIX

cPanel login invalid while using correct username and password

October 2, 2026 April 29, 2022 coderstent

Sometimes you may get login invalid error while trying to login to your cPanel account. But the username and password

continue reading
All About SSLWHM

Install Let’s Encrypt SSL on Hostname in cPanel/WHM Server

October 2, 2026 August 12, 2019 coderstent

The Let’s Encrypt allows you to install AutoSSL for the hostname. In this tutorial, I will show you how to

continue reading
1 2 3 4
Page 2 of 4
F Hire Me on Fiverr

Categories

  • All About SSL2
  • Ashik Daily Need8
  • Cloudflare2
  • Cloudflare Support1
  • cPanel1
  • CSF1
  • CXS1
  • Email Settings2
  • Email Spam Control2
  • Exim2
  • General10
  • Linux General Knowledge2
  • Linux Log Monitoring1
  • Mail2
  • Shell Scripting1
  • SSH3
  • Ubuntu VPS1
  • VPS Security4
  • WHM11
  • WHM ISSUE FIX2
  • WHM Security2
  • WHM SSH3

Tags

cloudflare cpanel csf email Exim GoDaddy hacked linux Log Mail malware mysql security Server Down spam SSL Ubuntu vps whm