• Resolved Marcus Downing

    (@marcusdowning)


    This plugin depends on having ClamAV and the PHP-ClamAV extension installed. Unfortunately, PHP-ClamAV doesn’t seem to be very well supported, hasn’t been updated to the latest version of ClamAV, and isn’t published to the standard Aptitude lists. Getting it to install on Ubuntu 12.04 LTS involves hacking around with the PPAs in /etc/apt/sources.list, and I’ve yet to find a version that works properly.

    Do you have any links to getting this working nicely?

    http://ww.wp.xz.cn/plugins/upload-scanner/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Marcus Downing

    (@marcusdowning)

    Calling the command line version of clamscan instead works, and with the right options can remove or quarantine files.

    clamscan --remove "$UPLOAD_SCANNER_ORIG_TEMPNAME"

    However, since the Upload Scanner treats it as just another command line, it doesn’t get any information from the results. So at best you give the person who uploaded the file an error message because the file was deleted, rather than alerting them that the file is infected.

    Thread Starter Marcus Downing

    (@marcusdowning)

    Instructions that approximately work:

    http://askubuntu.com/questions/166280/how-do-i-install-the-clamav-extension-for-php-5-on-11-04

    It’s messy though, and involves installing your own version of ClamAV. I’m left wondering why there isn’t a neat way of doing this.

    Plugin Author Kurt Payne

    (@kurtpayne)

    Hi Marcus,

    When I was developing this, I had to use these instructions (or similar) to install the clamscan extension. The phpize && configure && make && make install pattern is standard for php extensions. I’m not overly familiar with Ubuntu, but if you have access to the pecl command, you could try “pecl install /path/to/clamscan.source.tar.gz” to automate this for you.

    Thread Starter Marcus Downing

    (@marcusdowning)

    Thanks. That streamlines the installation of php-clamav, but not the need to install a non-Aptitude version of ClamAV to be compatible with it.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Installing php-clamav on Ubuntu’ is closed to new replies.