You can fix it by disabling Apache module: auth_mysql. It's not compatible with Apache-2.4, so we have to disable it.
NOTE: auth_mysql is installed and enabled by iRedMail-0.8.7 by default, so web access to Awstats and Cluebringer webui have the same issue, you have to use Apache module 'authn_dbd' instead.
*) Install required package:
# apt-get install libaprutil1-dbd-mysql
*) Backup old Apache config files:
# cd /etc/apache2/conf-available/
# cp awstats.conf awstats.conf.bak
# cp cluebringer.conf cluebringer.conf.bak
*) Replace awstats.conf and cluebringer.conf with attached sample config files. NOTE: Please replace vmail password by the real one.
*) Enable both config files and required Apache authentication module:
# a2enconf awstats
# a2enconf cluebringer
# a2enmod authn_dbd
*) Comment out (all) below settings in /etc/apache2/apache.conf:
Auth_MySQL_Info
Auth_MySQL_General_DB
*) Restart Apache service:
# service apache2 restart
NOTE: This issue will be fixed in next release of iRedMail.
*) Sample awstats.conf:
DBDriver mysql
# Important note: use 'pass=' for MySQL, 'password=' for PostgreSQL.
DBDParams "host=127.0.0.1 port=3306 dbname=vmail user=vmail pass=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
<Directory /usr/lib/cgi-bin>
DirectoryIndex awstats.pl
Options ExecCGI
AuthType Basic
AuthName "Authentication required"
AuthBasicProvider dbd
AuthDBDUserPWQuery "SELECT password FROM mailbox WHERE username = %s AND isglobaladmin=1 LIMIT 1"
Require valid-user
</Directory>
*) Sample cluebringer.conf:
DBDriver mysql
# Important note: use 'pass=' for MySQL, 'password=' for PostgreSQL.
DBDParams "host=127.0.0.1 port=3306 dbname=vmail user=vmail pass=xxxxxxxxxxxxxxxxxxxxxxxx"
<Directory /usr/share/postfix-cluebringer-webui/webui>
DirectoryIndex index.php
AuthType Basic
AuthName "Authentication required"
AuthBasicProvider dbd
AuthDBDUserPWQuery "SELECT password FROM mailbox WHERE username = %s AND isglobaladmin=1 LIMIT 1"
Require valid-user
</Directory>