Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 8351  / 2 Years ago, mon, february 7, 2022, 11:20:45

I'd like to automatically scan uploaded files for viruses with php. There was an extension called php-clamavlib in earlier versions of ubuntu, but on Natty I get




E: Unable to locate package php5-clamavlib




Isn't there any extension anymore? What could I do to archive this?


More From » php

 Answers
0

  • Please download the latest php-clamav tarball from Launchpad.

  • Install php5-dev, clamav if you haven't already with sudo apt-get

  • Extract the tarball, cd into the php-clamav-xxxx directory, and follow these steps to install the php-clamav module (adapted from INSTALL):




    phpize
    ./configure --with-clamav
    make
    cp modules/clamav.so /usr/local/lib/php/extensions/
    (restart Apache)
    service httpd restart


[#36682] Tuesday, February 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
elecerna

Total Points: 140
Total Questions: 121
Total Answers: 107

Location: Northern Ireland
Member since Sun, Nov 21, 2021
3 Years ago
;