{"id":2306,"date":"2013-04-07T12:38:28","date_gmt":"2013-04-07T16:38:28","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=2306"},"modified":"2013-04-07T12:38:28","modified_gmt":"2013-04-07T16:38:28","slug":"how-to-install-clamav-antivirus-on-linux-cpanel","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/how-to-install-clamav-antivirus-on-linux-cpanel","title":{"rendered":"How to install ClamAV antivirus on Linux \/ cPanel?"},"content":{"rendered":"<p>ClamAV is a anti-virus software that detects various malicious softwares and viruses. It can also be installed and configured in front of a mail server to scan emails. It provides command line scanning and automatic database update.<\/p>\n<p>You can install ClamAV on a cPanel server from WHM as well as via SSH.<\/p>\n<blockquote>\n<pre>1) Login to WHM and goto the cPanel section<\/pre>\n<pre>2) click Manage Plugins<\/pre>\n<pre>3) select the checkbox \"Install and Keep Updated\" in ClamAV section.<\/pre>\n<pre>4) Click Save at the bottom of the page.<\/pre>\n<\/blockquote>\n<p>It will take a few minutes for the installation to complete. Once done, <span style=\"color: #0000ff;\">enable the following checkboxes from WHM &gt;&gt; Plugins &gt;&gt; Configure ClamAV Scanner<\/span> and click Save.<\/p>\n<blockquote>\n<pre>Scan Entire Home Directory\r\nScan Mail\r\nScan Public FTP Space\r\nScan Public Web Space<\/pre>\n<\/blockquote>\n<p>Each individual users will have a Virus Scanner option in his cPanel from where he can scan his files, emails etc.<\/p>\n<p><span style=\"color: #0000ff;\">The second method of ClamAV installation is through SSH<\/span>. Login to the server and goto module-install directory and run the installer<\/p>\n<blockquote>\n<pre># cd \/usr\/local\/cpanel\/modules-install\/clamavconnector-Linux-i686\/<\/pre>\n<pre># .\/install<\/pre>\n<\/blockquote>\n<p>That&#8217;s it. If you now plan to scan the server side files OR the website files of any account, the following commands are very much useful and provide you with a quick result.<\/p>\n<p>Updating the antivirus database first:<\/p>\n<blockquote>\n<pre># freshclam<\/pre>\n<\/blockquote>\n<p>To scan a directory and print a list of the infected files:<\/p>\n<blockquote>\n<pre># clamscan -ri \/home<\/pre>\n<\/blockquote>\n<p>Scan and directly remove the infected files and emails<\/p>\n<blockquote>\n<pre># clamscan -ri \u2013remove \/home<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>ClamAV is a anti-virus software that detects various malicious softwares and viruses. It can also be installed and configured in front of a mail server to scan emails. It provides command line scanning and automatic database update.<br \/>\nYou can install ClamAV on a cPanel server from WHM as well as via SSH.<\/p>\n<p>1) Login to WHM and goto the cPanel section<br \/>\n2) click Manage Plugins<br \/>\n3) select the checkbox &#8220;Install and Keep Updated&#8221; in ClamAV section.<br \/>\n4) Click Save at the bottom of the page.<\/p>\n<p>It will take a few minutes for the installation [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1476,1474,1471,1475,1473,1472],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/2306"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=2306"}],"version-history":[{"count":10,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/2306\/revisions"}],"predecessor-version":[{"id":2316,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/2306\/revisions\/2316"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=2306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=2306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=2306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}