outroll / vesta

VESTA Control Panel
http://vestacp.com
GNU General Public License v3.0
2.97k stars 1.03k forks source link

clamd has a different package name and config file on Amazon Linux #1796

Open cmstew opened 5 years ago

cmstew commented 5 years ago

Operating System (OS/VERSION):

Amazon Linux AMI 2018.03

VestaCP Version:

0.9.8 Release 23

Installed Software (what you got with the installer):

php-fpm, nginx, named, vsftpd, iptables, fail2ban, exim, dovecot, spamassassin, clamav, FS Quota, remi repo, softalicious, mysql

Steps to Reproduce:

Install vesta and try to start clamd with "service clamd start". I get the response, "clamd: unrecognized service".

I also attempted to run freshclam and got "bash: freshclam: command not found"

Related Issues/Forum Threads:

According to the aws developer forum linked below, the "clamd" daemon is now "clamd.scan".

https://forums.aws.amazon.com/thread.jspa?messageID=542694

Other Notes:

In order for clamd.scan to start, I had to do two things:

  1. change group and owner of /var/run/clamd.scan from "clamscan" to "clam"
  2. move or symlink the config file from "/etc/clamd.conf" to "/etc/clamd.d/scan.conf"

I also found out that freshclam had to be installed using "yum install clamav-update" because it wasn't installed by the vesta installer.

cmstew commented 5 years ago

Pull request #1798 should resolved this issue. Please let me know if you have any alternative suggestions.

anton-reutov commented 5 years ago

@cmstew can you provide access to server on Amazon without Vesta?

cmstew commented 5 years ago

I sent an email to info@vestacp.com regarding access to a fresh amazon linux server.

anton-reutov commented 5 years ago

@cmstew can you provide access again to server without Vesta?

cmstew commented 5 years ago

@anton-reutov I sent you an email with new credentials.

anton-reutov commented 5 years ago

@cmstew, thank you