Hi,
I
have latest moodle 3.9 on zentyal 6.2 (ubuntu 18.04.4 64 bit). I have
ClamAV 0.102.3/25850, with apache 2.4.43 (default version 2.4.29 does
not support latest TLS versions and encryption primitives, so I
installed apache from third party repositories) and PHP 7.2.24-0ubuntu0.18.04.6 with Zend OPcache v7.2.24-0ubuntu0.18.04.6.
With PHP apache handler (file /etc/php/7.2/apache2/php.ini configured as described here), whenever there is an upload of a file, clamAV fails:
/tmp/phpys4WKw: lstat() failed: No such file or directory. ERROR
ClamAV user has write access to web server folders and is member of www-data group (similar issue here).
With PHP fast-cgi (file /etc/php/7.2/fpm/php.ini configured as described here),
generally it works well. However, sometimes moodle is very slow and get
stucks (especially with previous 3.8.2 version) and I have to manually
restart apache and php-fpm services.
Do you have hint about how to solve PHP apache handler problem? Is the PHP fast-cgi problem a possible bug?
PHP apache handler and clamAV upload issue, PHP fast-cgi slowness
by erotavlas erotavlas -
Number of replies: 2
In reply to erotavlas erotavlas
Re: PHP apache handler and clamAV upload issue, PHP fast-cgi slowness
by erotavlas erotavlas -
I found a solution for the second problem with PHP fast-cgi. It is enough to enable http2 on apache2: a2enmod http2
In reply to erotavlas erotavlas
Re: PHP apache handler and clamAV upload issue, PHP fast-cgi slowness
by erotavlas erotavlas -
Hi,
I upgraded to php-7.4 via PPA and my problem with clamAV is gone. Moreover, even performance seems better.
I upgraded to php-7.4 via PPA and my problem with clamAV is gone. Moreover, even performance seems better.