{"id":3553,"date":"2016-02-27T23:14:13","date_gmt":"2016-02-28T04:14:13","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=3553"},"modified":"2025-03-09T15:25:52","modified_gmt":"2025-03-09T19:25:52","slug":"how-to-install-clamav-cpanel","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/how-to-install-clamav-cpanel\/","title":{"rendered":"How to Install and Use ClamAV Antivirus in WHM\/cPanel"},"content":{"rendered":"\r\n<p><strong>ClamAV<\/strong> is a powerful open-source antivirus engine designed to detect and remove malicious files from your server. With WHM, you can easily install and configure ClamAV to protect your websites and email accounts.<\/p>\r\n\r\n\r\n<h2>How to Install ClamAV in WHM<\/h2>\r\n<p>To install ClamAV on your WHM server, follow these steps:<\/p>\r\n\r\n<h3>1. Access WHM Plugins<\/h3>\r\n<ul>\r\n<li>Log into <strong>WHM<\/strong> as the root user.<\/li>\r\n<li>Go to <strong>cPanel<\/strong> > <strong>Manage Plugins<\/strong>.<\/li>\r\n<li>Find <strong>clamavconnector<\/strong> and check the box to enable it.<\/li>\r\n<li>Click <strong>Save<\/strong> at the bottom of the page.<\/li>\r\n<\/ul>\r\n\r\n<h3>2. Update the Antivirus Database<\/h3>\r\n<p>Once installed, update ClamAV\u2019s virus definitions to ensure it detects the latest threats. Run the following command:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>freshclam<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<h2>How to Scan for Malware with ClamAV<\/h2>\r\n\r\n<h3>Scan a Directory for Infected Files<\/h3>\r\n<p>To scan a specific directory and display infected files, use:<\/p>\r\n<blockquote>\r\n<pre><code>clamscan -ri \/home<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<h3>Scan and Automatically Remove Infected Files<\/h3>\r\n<p>If you want ClamAV to delete malware-infected files and emails automatically, run:<\/p>\r\n<blockquote>\r\n<pre><code>clamscan -ri --remove \/home<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<h2>Enhance Security with Linux Malware Detect (Maldet)<\/h2>\r\n<p>For additional security, you can also use <strong>Linux Malware Detect (Maldet)<\/strong> alongside ClamAV. Check out our step-by-step guide here:<\/p>\r\n<p><a href=\"http:\/\/underhost.com\/blog\/how-to-install-linux-malware-detect\/\" target=\"_blank\"><strong>How to Install Linux Malware Detect<\/strong><\/a><\/p>\r\n\r\n<h2>Need Assistance?<\/h2>\r\n<p>If you need help setting up ClamAV or Maldet, UnderHost\u2019s 24\/7 support team is available to assist you. Contact us via <a href=\"https:\/\/customerpanel.ca\/client\" target=\"_blank\">@CustomerPanel<\/a> for expert guidance.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Protect your server from malware and viruses by installing ClamAV on WHM. Follow this guide to install, update, and scan your system for threats.<\/p>\n","protected":false},"author":1,"featured_media":5113,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,38,11],"tags":[],"class_list":["post-3553","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-controlpanel","category-cpinstall","category-how-to"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=3553"}],"version-history":[{"count":2,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3553\/revisions"}],"predecessor-version":[{"id":5123,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3553\/revisions\/5123"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media\/5113"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=3553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=3553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=3553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}