Hi, i've taken an interest into using clam together with PHP and as such I'm trying to install the extension on osx (yeah i know).
I've managed to install clamav with brew (osx package manager) and configured it according to this information (socket) https://gist.github.com/paulspringett/8802240
Then I compiled and installed the extension according to this url http://www.sitepoint.com/zf-clamav/
the result is that phpinfo() shows the extension to be loaded, but it's clamav section show the following errors. I'm hoping this is obvious to you as I am stumped on how to proceed. I think it somehow cannot find the socket...
clamav LibClamAV Error: cl_load(): No such file or directory: /var/lib/clamav PHP Warning: cl_load: failed : error code 11 (Can't get file status) in Unknown on line 0 PHP Warning: Load database during PHP_MINFO_FUNCTION failed : error code : -1 (Unknown error code) in Unknown on line 0
note that this is true for cli as apache phpinfo's output. I'm working on php55 at the moment.
Kind regards and thanks for any insights
Bas Kamer
I found some setting I can play with. specifically clam.dbpath="/usr/local/Cellar/clamav/0.98.4/share/clamav"
this is the directory where the db files are located it seems... This changes the error to can't allocate memory...
Thanks again
Bas