English  France













If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.



Reply
  #1 (permalink)  
Old 06-18-2009, 09:58 AM
UnderHost's Avatar
UnderHost Management
 
Join Date: Jul 2008
Posts: 581
Default Install ClamAV in Centos with Cpanel

Installing antivirus is most important if you run a VPS or dedicated server, because of so many worms and trojans get in to your server often without notice and could compromise the server.


Cpanel WHM Installation

The easiest way to install clam antivirus in cpanel is through install plugin option in Cpanel WHM .


Code:
Go > WHM > Cpanel Install Plugin > Enable Clamav Connector
Manual Installation


Code:
yum install clamd
[OR]
yum install clamav
If it doesnt work use this


Code:
rpm -Uhv http://apt.sw.be/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
follow this instructions here based on centos version (Locate B2 in that page)
after installing that you can issue



Code:
yum install clamd
 [OR]
 yum install clamav
either of those should work.
Once you have installed clamav in your centos…here are some of the basic commands using the software..


1. To update the antivirus database
Code:
> freshclam
2. To run antivirus

Code:
clamav -r /home
3. Running as Cron Daily Job

To run antivirus as a cron job (automatically scan daily) just run crontab -e from your command line. Then add the following line and save the file.


Code:
02 1 * * * root clamscan -R /home
This will run the cron job daily @ 1.02 AM by scanning your cPanel home directory.



You can change the folder to whatever you want for mail etc.
__________________
UnderHostProviding Affordable and Quality USA Hosting & Offshore cPanel Hosting
24/7 Rapid Support / 99.9% Uptime Guarantee / Shared / Reseller / VPS / Dedicated
Premium VPSUSA Cloud Virtual Private Servers - Dedicated and Scalable Resources - Parallels® Virtuozzo
Hong Kong - Singapore - USA - Canada - Netherlands - UK - Germany - Panama - Malaysia
Reply With Quote
underhost.us
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Loading...


All times are GMT -4. The time now is 02:13 PM.
Copyright © 2010 UnderHost Networks Ltd






Partners
Underhost Facebook  Underhost Twitter

Copyright © 2011 UnderHost Networks Ltd