Integrate Plesk Proftpd with Clamav on CentOS

Plesk or Parallels Plesk Panel is the most complete Web hosting control panel available today. In fact, it’s the only Web hosting panel that includes integrated Web design tools, a SaaS storefront, and fully automated billing and provisioning. Plus it delivers maximum profits for growing service providers; provides key tools for Web designers; and includes an easy-to-use server control panel for IT professionals (and small businesses without IT staff).

Unfortunately, by default its does not include virus and malware scanning via ftp uploading. For more secure server, it is best to have this feature above all the best services plesk had provided. The process quite simple, just follow below instructions.

The first thing you need to check whether you had install atomicorp repository. Because only atomicorp had integrate psa-proftp with clamav, where plesk default installation does not include it. If you had not installed it, just type below command to install.

Install atomicorp repos:
$ wget -q -O – http://www.atomicorp.com/installers/atomic | sh

Now, you need to update both clamav and proftp.
$ yum update clamav clamd
$ yum update psa-proftpd

Then, you need to edit clamav setting.
$vi /etc/clamd.conf
(change the user into root instead of clamav)

User root

After that, you also need to edit proftp setting as well.
$ vi /etc/proftpd.conf
insert between text:

[php]<IfModule mod_clamav.c>
ClamAV on
ClamServer 127.0.0.1
ClamPort 3310
</IfModule>[/php]

Double checks whether clamav had successfully patch:
$ proftpd -vv
(if its correctly patch, you will see “mod_clamav.c” in the module)

Lastly, all you need to do is to restart both clamav and proftp to get it work.
$ service clamd restart
$ service xinetd restart

Finally, go to http://www.eicar.org/anti_virus_test_file.htm to download eicar test virus and upload it to your ftp server and test it out. Clamav will remove the virus files and you will see the upload virus in 0 bytes. You may view on your clamav log for more details.

jonboy60

I’m a Malaysian, my name is Jon Loh (jonboy60) living in Kuala Lumpur and working in Petaling Jaya, Malaysia. Jonboy60.com is a blog magazine about Linux and other open source softwares. All about to a daily jobs or real life experiences I had since the year 2002 administrating Linux and Windows server in a hosting company. Basically i will be offering Linux tips, howto, tricks, latest news and tutorial. Contact Me for Career opportunities, business offers, Linux solutions for business or home, web and email server solutions, Linux consulting and expertise requests. Email to me on jonboy60{@}gmail.com. The site I’m running is VenCouture.com – Malaysia Online Fashion Shopping Boutique, VenCouture. We sell fashion clothes, sexy lingeries, baby clothing and etc.

More PostsWebsite

Follow Me:
TwitterFacebook

Leave a Reply

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

Connect with Facebook

*


8 + 5 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge