Parameters
The php-clamav extension is installed under the php additional .ini files directory.
If you use the debconf feature of this package, you don't need to create clamav.ini manually !
To enable this library create clamav.ini configfile in /etc/php/conf.d/ and add the following:
extension=clamav.so [clamav] clamav.dbpath="/var/lib/clamav" clamav.maxreclevel=16 clamav.maxfiles=10000 clamav.maxfilesize=26214400 clamav.maxscansize=104857600 clamav.keeptmp=0 clamav.tmpdir="/tmp"
clamav.dbpath
Path to a directory containing database files.
Default:
clamav.dbpath="/var/lib/clamav"
clamav.maxreclevel
Nested archives are scanned recursively, e.g. if a Zip archive contains a RAR file, all files within it will also be
scanned. This options specifies how deeply the process should be continued.
Warning: disabling this limit or setting it too high may result in severe damage to the system.
Default:
clamav.maxreclevel=16
clamav.maxfiles
Number of files to be scanned within an archive, a document, or any other kind of container.
Warning: disabling this limit or setting it too high may result in severe damage to the system.
Default:
clamav.maxfiles=10000
clamav.maxfilesize
Files larger than this limit won't be scanned. Affects the input file itself as well as files contained inside it (when
the input file is an archive, a document or some other kind of container).
Warning: disabling this limit or setting it too high may result in severe damage to the system.
Default:
clamav.maxfilesize=26214400
clamav.maxscansize
Sets the maximum amount of data to be scanned for each input file. Archives and other containers are recursively extracted
and scanned up to this value.
Warning: disabling this limit or setting it too high may result in severe damage to the system.
Default:
clamav.maxscansize=104857600
clamav.load_db_on_startup
Clamav database take many space of memory, if you load db on startup you speedup scan process. By default, database are load on each scan and this method take a time more important.
Default:
clamav.load_db_on_startup=0
clamav.tmpdir
Optional path to the global temporary directory.
Default:
clamav.tmpdir="/tmp"