Debian/Ubuntu – ClamAV-clamd: Can’t connect to UNIX socket /var/run/clamav/clamd.ctl

Error: Debian/Ubuntu – ClamAV-clamd: Can’t connect to UNIX socket /var/run/clamav/clamd.ctlYou get the following errors in your mail log (/var/log/mail.log) on Debian/Ubuntu:Jul 28 22:04:28 server1 amavis[31819]: (31819-19) (!)ClamAV-clamd: Cant connect to UNIX socket /var/run/clamav/clamd.ctl: 2, retrying (2) Jul 28 22:04:34 server1 amavis[31819]: (31819-19) (!!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (Cant connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 88) line 309. Jul 28 22:04:34 server1 amav

Read More »

CentOS – Transaction Check Error : file /usr/bin/shasum from install of perl-Digest-SHA-5.50-1.el5.rf.x86_64 conflicts

Error: CentOS – Transaction Check Error : file /usr/bin/shasum from install of perl-Digest-SHA-5.50-1.el5.rf.x86_64 conflicts with file from package perl-Digest-SHA-PurePerl-5.48-1.el5.rf.noarchYou see the following error:13:30:46 : Transaction Check Error : file /usr/bin/shasum from install of perl-Digest-SHA-5.50-1.el5.rf.x86_64 conflicts with file from package perl-Digest-SHA-PurePerl-5.48-1.el5.rf.noarch SolutionRunyum -y -t -x perl-Digest-SHA upgrade

Read More »

Kernel Compilation – ERROR : “pm_idle” [arch/x86/kernel/apm.ko] undefined!

Kernel Compilation – ERROR : “pm_idle” [arch/x86/kernel/apm.ko] undefined!Error: Kernel Compilation – ERROR : “pm_idle” [arch/x86/kernel/apm.ko] undefined!You try to compile a Linux kernel and get the following errors:ERROR: “pm_idle” [arch/x86/kernel/apm.ko] undefined! ERROR: “default_idle” [arch/x86/kernel/apm.ko] undefined! WARNING: modpost: Found 7 section mismatch(es). To see full details build your kernel with: make CONFIG_DEBUG_SECTION_MISMATCH=y make[2]: *** [__modpost] Error 1 make[1]: *** [modules] Error 2 make[1]: Leaving directory `/home/huawei/linux-2.6 make: *** [debian/stamp/bui

Read More »

Apache2 + mod_auth_mysql – Internal error: pcfg_openfile() called with NULL filename

Error: Apache2 + mod_auth_mysql – Internal error: pcfg_openfile() called with NULL filenameYou use Apache2 and mod_auth_mysql to password-protect web folders. In Apache’s error log you see these errors:[Wed Jun 11 17:02:45 2008] [error] Internal error: pcfg_openfile() called with NULL filename [Wed Jun 11 17:02:45 2008] [error] [client 127.0.0.1] (9)Bad file descriptor: Could not open password file: (null) SolutionAddAuthBasicAuthoritative Off
AuthUserFile /dev/nullto your mod_auth_mysql configuration and restart Apache.

Read More »

Debian/Apache2/WebDAV – Permission denied: Could not open property database.

Error: Debian/Apache2/WebDAV – Permission denied: Could not open property database.You use Apache2 with WebDAV on Debian and see this in Apache’s error log (/var/log/apache2/error.log):[Wed Jun 11 15:39:04 2008] [error] [client 192.168.0.46] (13)Permission denied: Could not open property database. [500, #1] SolutionThis means that /var/lock/apache2 is not owned by the Apache user (www-data on Debian). You can fix this problem by running:chown www-data /var/lock/apache2

Read More »

Debian Squeeze/Apache2/PHP5 – PHP Deprecated: Comments starting with ‘#’ are deprecated in /etc/php5/apache2/conf.d/ming.ini on

Error: Debian Squeeze/Apache2/PHP5 – PHP Deprecated: Comments starting with ‘#’ are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0You see the following lines in Apache’s error log (/var/log/apache2/error.log):PHP Deprecated: Comments starting with # are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0 PHP Deprecated: Comments starting with # are deprecated in /etc/php5/apache2/conf.d/ps.ini on line 1 in Unknown on line 0 SolutionOpen /etc/php5/apache2/conf.d/ming.ini:vi /etc/php5/apache2/conf.d/ming.iniThe file looks like this:# con

Read More »

Courier-IMAP – imapd: Maximum connection limit reached for

Error: Courier-IMAP – imapd: Maximum connection limit reached forYou cannot connect to Courier-IMAP and see the following errors in your mail log: Aug 08 11:25:45 server1 imapd: Maximum connection limit reached for ::ffff:1.2.3.4 SolutionOpen your Courier-IMAP configuration file; on Debian it’s /etc/courier/imapd:vi /etc/courier/imapdAdjust the MAXDAEMONS and MAXPERIP settings (you might have to play around with these values)…[…]
##NAME: MAXDAEMONS:0
#
# Maximum number of IMAP servers started
#MAXDAEMONS=40##NAME: MAXPERIP:0
#
# Maximum number of connections to accept from the same IP a

Read More »

[solved] MySQL – Got a packet bigger than ‘max_allowed_packet’ bytes

[solved] MySQL – Got a packet bigger than ‘max_allowed_packet’ bytesYou see the following error while executing a MySQL query:ERROR 1153 (08S01) at line 138: Got a packet bigger than max_allowed_packet bytes SolutionOpen your my.cnf file – on Debian/Ubuntu, it’s /etc/mysql/my.cnf, on Fedora/RedHat/CentOS, it’s /etc/my.cnf – and search for the max_allowed_packet line.I suggest you play around with its value a bit – double or quadruple its value, restart MySQL – on Debian/Ubuntu, the command isservice mysql restart… and on Fedora/RedHat/CentOS, the command isservice mysqld restart- and see if

Read More »