How to install cPMalScan

cPanel has recently updated it’s internal PHP version to 7.2.x.  And the older scanner is not compatible with new version due to ioncube version incompatibility. So we have released two separate installer for version 5.6.x and 7.x.x. So first SSH to your cPanel server as root and run below command to check your cPanel PHP version

/usr/local/cpanel/3rdparty/bin/php -v

If it’s PHP 7.x.x

cd /usr/local/src/
rm -rf cPMalScan*
wget http://downloads.tijeers.com/cpmalscan/cPMalScan.zip
unzip cPMalScan.zip
cd cPMalScan
chmod 755 install.sh
./install.sh

If it’s 5.6.x

cd /usr/local/src/
rm -rf cPMalScan*
wget http://downloads.tijeers.com/cpmalscan/cPMalScan-old.zip
unzip cPMalScan-old.zip
cd cPMalScan
chmod 755 install.sh
./install.sh

How to Scan from command line

From SSH run below command

cpmalscan -a /folder/path/to/scan
OR
cpmalscan -a /file/path/to/scan

How to Uninstall cPMalScan

SSH to your cPanel server as root and run below commands.

cd /usr/local/src/
rm -f uninstall.sh
wget http://downloads.tijeers.com/cpmalscan/uninstall.sh
sh uninstall.sh