1

Topic: Can't login to awstats but can in Iredadmin

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? iredadmin
- Related log if you're reporting an issue:
Just can't login into awstats but can login into iredadmin. I have also changed password in iredadmin for user postmaster@domain.com but still can not login into awstats.
And have no errors in log files.
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Can't login to awstats but can in Iredadmin

*) The passwords generated by iRedAdmin is SSHA512 by default (maybe different due to different 'DEFAULT_PASSWORD_SCHEME=' setting in iRedAdmin config file).
*) Awstats uses Apache builtin password authentication, but doesn't support SSHA512.

So you have to change the password to a salted MD5 hash instead for Awstats login.

3 (edited by Blisk 2016-09-18 15:04:22)

Re: Can't login to awstats but can in Iredadmin

for test I have changed awstats.config file and now I can login but can not access page it says forbidden

You don't have permission to access /awstats/awstats.pl on this server.

4

Re: Can't login to awstats but can in Iredadmin

What did you change?

5

Re: Can't login to awstats but can in Iredadmin

I changed all to this, this is awstats.conf for apache

ErrorLog "logs/awstats.error_log"
CustomLog "logs/awstats.access_log" combined


#
# Directives to allow use of AWStats as a CGI
#
Alias /awstatsicon "/usr/share/awstats/wwwroot/icon/"
ScriptAlias /awstats "/usr/share/awstats/wwwroot/cgi-bin/"
#
# This is to permit URL access to scripts/files in AWStats directory.
#

<Directory /usr/share/awstats/wwwroot/cgi-bin/>
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>

6

Re: Can't login to awstats but can in Iredadmin

I have solved this one too.
I have reinstall awstats and than change password to MD5 and now it works.