shmem.c:35: cannot create shared memory /var/tmp/clamav.shm: statistics will not be a

asishlla

Verified User
Joined
Jul 24, 2009
Messages
235
Hi,
this error always in httpd_error log (Hundred lines) :
Code:
shmem.c:35: cannot create shared memory /var/tmp/clamav.shm: statistics will not be available

please what is the problem? and how can i fix it?
Note: I have the latest version of clamav!
than you
 
One reason maybe be that you have enabled clamav_module in in httpd.conf
but you don't run clamd process
 
/etc/httpd/conf # vi httpd.conf

look for: clamav

find this line:

LoadModule clamav_module /usr/lib/apache/mod_clamav.so

put a # infront of it so it looks like:

#LoadModule clamav_module /usr/lib/apache/mod_clamav.so

save and restart apache.
You may need to do a clean up of old processes by running the two lines in shell:

ipcs | grep apache | awk '{print $2}' > sem.txt
for i in `cat sem.txt`; do { ipcrm -s $i; }; done;

and then restart apache again.

Check your error_log again and see if you have any errors/issues.

Old topic, but I just happen to hit the same prob today and thought it might help someone else too.

-Sup.
 
Back
Top