Install RKHunter

You can install RKHunter on Linux Server by using following steps.

1 Login to your server as root

2. cd /usr/local/src

3 Download RKHunter and extract the archive

wget http://downloads.rootkit.nl/rkhunter-1.1.4.tar.gz

Some time above URL is working fine due to that you can also use following URL to download the tar file.

http://sourceforge.net/projects/rkhunter/files/rkhunter/1.3.4/rkhunter-1.3.4.tar.gz/download?use_mirror=autoselect

tar -xzvf rkhunter-1.1.4.tar.gz


4. Install RKHunter

cd rkhunter

./installer.sh

Or

./installer.sh –layout default –install

You can also set the cron to receive the RKHunter result.

vi /etc/cron.daily/rkhunter.sh
#!/bin/bash
(/usr/local/bin/rkhunter –update && /usr/local/bin/rkhunter -c –nocolors –skip-keypress –summary 2>&1 | mail -s “RKhunter Scan Details” username@yourdomain.com)

chmod a+x /etc/cron.daily/rkhunter.sh



As RKHunter now updated its version therefore it could be possible that above steps or URL won’t work therefore please refer to the following new steps to install RKHunter

root@server [~]# cd /usr/local/src

root@server[~]#wget http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.3.8/rkhunter-1.3.8.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Frkhunter%2Ffiles%2Frkhunter%2F1.3.8%2F&ts=1323513745&use_mirror=space



root@server [~]#tar -xvf rkhunter-1.3.8.tar.gz

root@server [~]#cd rkhunter-1.3.8

root@server [/usr/local/src/rkhunter-1.3.8]#./installer.sh –layout default –install

Now run the rkhunter

root@server [/usr/local/src/rkhunter-1.3.8]# /usr/local/bin/rkhunter -c

  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Adding secondary IPs to Cpanel

  To access the IP Functions Menu, click on IP Functions, on the main screen...

Suspended page / Internal Server Error

If domain is showing "Internal Server Error" except suspention page after suspending the domain...

CPanel Log file locations

CPanel stores it’s log files in the /usr/local/cpanel/logs directory. Below is a list of the...

How do convert a dedicated ip to a shared ip on cPanel/WHM

In root SSH, copy the /etc/domainips file and then remove the IP from it: Code: cp...

How to disable directory browsing using .htaccess – Apache Web Server

Apache web server allow directory browsing by default. It’s always good to disable directory...