{"id":2359,"date":"2014-01-28T10:09:51","date_gmt":"2014-01-28T14:09:51","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=2359"},"modified":"2014-01-28T10:09:51","modified_gmt":"2014-01-28T14:09:51","slug":"error-cant-open-or-parse-the-config-freshclam-conf","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/error-cant-open-or-parse-the-config-freshclam-conf","title":{"rendered":"ERROR: Can&#8217;t open or parse the config freshclam.conf"},"content":{"rendered":"<p>While updating the ClamAV database using the &#8216;freshclam&#8217; command, you may receive the &#8220;can&#8217;t open or parse the config file freshclam.conf&#8221; message.<\/p>\n<blockquote>\n<pre>root@vps:~# freshclam\r\nERROR: Please edit example config file \/usr\/local\/etc\/freshclam.conf\r\nERROR: Can't open\/parse the config file \/usr\/local\/etc\/freshclam.conf<\/pre>\n<\/blockquote>\n<p>The reason is, <em>with the default installation, the &#8216;Example&#8217; variable is set to On<\/em> which makes the configuration file work as a example and not the real configuration file.<\/p>\n<p>To fix the issue, edit the freshclam.conf file<\/p>\n<blockquote>\n<pre># nano \/usr\/local\/etc\/freshclam.conf<\/pre>\n<\/blockquote>\n<p>and remove or comment the line that says &#8216;Example&#8217;.<\/p>\n<blockquote>\n<pre>#Example<\/pre>\n<\/blockquote>\n<p>Save the file and execute the freshclam command to update the ClamAV database.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While updating the ClamAV database using the &#8216;freshclam&#8217; command, you may receive the &#8220;can&#8217;t open or parse the config file freshclam.conf&#8221; message.<\/p>\n<p>root@vps:~# freshclam<br \/>\nERROR: Please edit example config file \/usr\/local\/etc\/freshclam.conf<br \/>\nERROR: Can&#8217;t open\/parse the config file \/usr\/local\/etc\/freshclam.conf<\/p>\n<p>The reason is, with the default installation, the &#8216;Example&#8217; variable is set to On which makes the configuration file work as a example and not the real configuration file.<br \/>\nTo fix the issue, edit the freshclam.conf file<\/p>\n<p># nano \/usr\/local\/etc\/freshclam.conf<\/p>\n<p>and remove or comment the line that says &#8216;Example&#8217;.<\/p>\n<p>#Example<\/p>\n<p>Save the file and execute the freshclam command to [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1490,1491,1489,1488],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/2359"}],"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=2359"}],"version-history":[{"count":2,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/2359\/revisions"}],"predecessor-version":[{"id":2361,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/2359\/revisions\/2361"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=2359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=2359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=2359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}