Comment 5 for bug 234927

Revision history for this message
Adam Sommer (asommer) wrote : Re: delay php script execution on cli

So I started installing each of the modules you listed which I didn't have, and I think clamavlib is the culprit. What happens, I believe, is that php5-libclamav will load the signature database when PHP is called from the command line. I think the library was written to be used with Apache which should load the db only when Apache starts or the db is updated programatically.

Anyway, can you test this by commenting the following lines in /etc/php5/cli/php.ini:
  #extension=clamav.so
  #[clamav]
  #clamav.dbpath=/var/lib/clamav
  #clamav.maxreclevel=0
  #clamav.maxfiles=0
  #clamav.archivememlim=0
  #clamav.maxfilesize=0
  #clamav.maxratio=0

Then rerun the script from the CLI? When I commented the lines the test script you posted above executed at normal speed.

Thanks