Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Our experts will login to your server within 30 minutes to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

freshclam command not found – A Quick solution

Are you stuck with the error “freshclam command not found”? We can help you fix it.

Usually, this error occurs when we try to update the virus databases in antivirus tools like ClamAV.

At Bobcares, we often receive requests to resolve ClamAV errors as part of our Server Management Services.

Today, let’s discuss how our Support Engineers easily fix this error for our customers.


More about ClamAV

As we all know, malware can cause serious impacts on website content. It directly affects the data security.

So, as a security measure, most server owners install antivirus programs like Clamav. Here, we check the downloaded files for virus signatures.

Usually, we use ClamAV to scan the downloaded files, emails, pdf, etc for virus detection.

Hackers evolve new methods of hacking every day. That’s why after the installation of ClamAV, the primary thing that we do is updating the virus database. But, while updating, this often throws certain errors.


How we fixed the error freshclam command not found?

Usually, the freshclam is a virus database update tool in ClamAV. Let us now see how our Support Engineers resolve the freshclam errors easily.

Recently, one of our customers approached us with a freshclam error. He installed ClamAV through WHM in his cPanel Centos Server. Then, he tried to update virus databases using the below command,


But, on executing the command, he received the below error.

freshclam command not found


Our Support Engineers checked the error in detail. On checking, we found that the symbolic links were not set properly.

In some cases, the newer versions of ClamAV do not create symbolic links as standard during its initial installation.

If we need to use the command-line interface to run ClamAV, the below binaries should reside in the /usr/local/cpanel/3rdparty/bin/ directory.


And, these binaries should have a symlink with the /usr/local/bin directory. So, the absence of this symlink caused the error.

Therefore, to resolve the error, we set the symlinks as follows.

ln -s /usr/local/cpanel/3rdparty/bin/clamscan /usr/local/bin/clamscan
ln -s /usr/local/cpanel/3rdparty/bin/freshclam /usr/local/bin/freshclam

This resolved the error easily.

Similarly, not accessing the binary with full path may also result in this error. In general, the $PATH variable will give the full path.

If it is empty or does not contain the full path, we need to set the path variable as below.

export PATH="full_path_of_binary"


[Need more assistance to resolve Clamav errors?- We’re available 24/7 to help you.]



In short, the freshclam command not found error occurs mainly due to incorrect setting of symlinks. In today’s writeup, we discussed how our Support Engineers fix this error easily.


Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.


Submit a Comment

Your email address will not be published. Required fields are marked *

Privacy Preference Center


Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]


Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid


Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie


These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.