{"id":5006,"date":"2016-08-20T10:32:42","date_gmt":"2016-08-20T10:32:42","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=5006"},"modified":"2021-02-03T11:14:48","modified_gmt":"2021-02-03T11:14:48","slug":"scan-ftp-uploaded-files-cpanel-servers","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/","title":{"rendered":"How to scan FTP uploaded files on cPanel Servers"},"content":{"rendered":"<p>First make sure to install clamAV,We ave already discuss in our previous articles <a href=\"https:\/\/cpanelplesk.com\/wp62\/install-and-configure-clamav-plugin-for-cpanel\/\">how to install and run clamAV on server<\/a>. Clam ANTIVIRUS is a free and open-source, cross-platform antivirus software tool-kit which has now been included in Cpanel\/WHM. It detect many types of malicious software, including viruses. One of its basic use is on mail servers as a server-side email virus scanner.<!--more--><\/p>\n<p>You can also install it from your WHM interface as root by clicking on:<\/p>\n<p><strong>cPanel \u2014&gt; Manage Plugins \u2014&gt; on clamavconnector<\/strong><\/p>\n<p>Check the \u201cInstall and Keep Updated\u201d and then click at the bottom of the page to save.<\/p>\n<p>Now we need to edit the file <strong>\/etc\/pure-ftpd.conf<\/strong> and change this line with:<\/p>\n<p>CallUploadScript yes<\/p>\n<p>Next create file <strong>\/etc\/pure-ftpd\/clamav_check.sh<\/strong> with this content:<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">#!\/bin\/bash\r\n\r\n#Maximum file size to scan in bytes that\u2019s set to 10MB\r\n\r\nMAXSIZE=10485760\r\n\r\nif [ \u201c$UPLOAD_SIZE\u201d -le \u201c$MAXSIZE\u201d ]; then\r\n\r\n\/usr\/bin\/clamdscan \u2013remove \u2013quiet \u2013no-summary \u201c$1\u201d\r\n\r\nfi<\/pre>\n<\/div>\n<p><span style=\"color: #000000;\">Change its permissions to make it executable:<\/span><\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">chmod 755 \/etc\/pure-ftpd\/clamav_check.sh<\/pre>\n<\/div>\n<p><span style=\"color: #000000;\">Now we should start the pure-uploadscript daemon every time to call our script when a file is uploaded<\/span><\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">\/usr\/sbin\/pure-uploadscript -B -r \/etc\/pure-ftpd\/clamav_check.sh<\/pre>\n<\/div>\n<p><span style=\"color: #000000;\">And to let it start with your server\/vps boots just run this :<\/span><\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">echo \u201c\/usr\/sbin\/pure-uploadscript -B -r \/etc\/pure-ftpd\/clamav_check.sh\u201d &gt;&gt; \/etc\/rc.d\/rc.local<\/pre>\n<\/div>\n<p><span style=\"color: #000000;\">Now restart pure-ftpd :<\/span><\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">service pure-ftpd restart<\/pre>\n<\/div>\n<p>N<span style=\"color: #000000;\">ow all your uploaded files which are less than 10MB in size will be scanned by <a style=\"color: #000000;\" href=\"https:\/\/cpanelplesk.com\/wp62\/clamav-installed-not-working-command-line-appears-not-installed\/\">ClamAV<\/a>, You can adjust the size limit as per your requirements.<\/span><\/p>\n<p><span style=\"color: #000000;\">That\u2019all to do.Please\u00a0Give your opinion below if you experience any issues or to discuss your ideas and experiences.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>First make sure to install clamAV,We ave already discuss in our previous articles how to install and run clamAV on server. Clam ANTIVIRUS is a free and open-source, cross-platform antivirus software tool-kit which has now been included in Cpanel\/WHM. It detect many types of malicious software, including viruses. One of its basic use is on [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":69,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,14],"tags":[],"class_list":["post-5006","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to scan FTP uploaded files on cPanel Servers - cPanel Plesk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to scan FTP uploaded files on cPanel Servers - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"First make sure to install clamAV,We ave already discuss in our previous articles how to install and run clamAV on server. Clam ANTIVIRUS is a free and open-source, cross-platform antivirus software tool-kit which has now been included in Cpanel\/WHM. It detect many types of malicious software, including viruses. One of its basic use is on [...]Continue Reading...\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2012\/06\/clamAV-AntiVirus.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Seemab Saleem\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/\"},\"author\":{\"name\":\"Seemab Saleem\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\"},\"headline\":\"How to scan FTP uploaded files on cPanel Servers\",\"datePublished\":\"2016-08-20T10:32:42+00:00\",\"dateModified\":\"2021-02-03T11:14:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/\"},\"wordCount\":229,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2012\/06\/clamAV-AntiVirus.png\",\"articleSection\":[\"Cpanel\",\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/\",\"name\":\"How to scan FTP uploaded files on cPanel Servers - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2012\/06\/clamAV-AntiVirus.png\",\"datePublished\":\"2016-08-20T10:32:42+00:00\",\"dateModified\":\"2021-02-03T11:14:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2012\/06\/clamAV-AntiVirus.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2012\/06\/clamAV-AntiVirus.png\",\"width\":200,\"height\":200,\"caption\":\"clamAV AntiVirus\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to scan FTP uploaded files on cPanel Servers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\",\"name\":\"Seemab Saleem\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"caption\":\"Seemab Saleem\"},\"description\":\"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!\",\"sameAs\":[\"https:\/\/cpanelplesk.com\/wp62\"],\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to scan FTP uploaded files on cPanel Servers - cPanel Plesk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/","twitter_card":"summary_large_image","twitter_title":"How to scan FTP uploaded files on cPanel Servers - cPanel Plesk","twitter_description":"First make sure to install clamAV,We ave already discuss in our previous articles how to install and run clamAV on server. Clam ANTIVIRUS is a free and open-source, cross-platform antivirus software tool-kit which has now been included in Cpanel\/WHM. It detect many types of malicious software, including viruses. One of its basic use is on [...]Continue Reading...","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2012\/06\/clamAV-AntiVirus.png","twitter_misc":{"Written by":"Seemab Saleem","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/"},"author":{"name":"Seemab Saleem","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648"},"headline":"How to scan FTP uploaded files on cPanel Servers","datePublished":"2016-08-20T10:32:42+00:00","dateModified":"2021-02-03T11:14:48+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/"},"wordCount":229,"commentCount":0,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2012\/06\/clamAV-AntiVirus.png","articleSection":["Cpanel","Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/","url":"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/","name":"How to scan FTP uploaded files on cPanel Servers - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2012\/06\/clamAV-AntiVirus.png","datePublished":"2016-08-20T10:32:42+00:00","dateModified":"2021-02-03T11:14:48+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2012\/06\/clamAV-AntiVirus.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2012\/06\/clamAV-AntiVirus.png","width":200,"height":200,"caption":"clamAV AntiVirus"},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/scan-ftp-uploaded-files-cpanel-servers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"How to scan FTP uploaded files on cPanel Servers"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648","name":"Seemab Saleem","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","caption":"Seemab Saleem"},"description":"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!","sameAs":["https:\/\/cpanelplesk.com\/wp62"],"url":"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/5006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=5006"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/5006\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/69"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=5006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=5006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=5006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}