Distro: Ubuntu 16.04
I-MSCP: v1.3.0 (fresh installed on plain Ubuntu)
Problem: Error 404 after click on Webstatistics in Panel.
The username and password ist asked before, after then the url, e.g. http://example.com/stats/
shows 404 Not found
The log /var/log/apache2/error.log shows:
and a look at /usr/lib/cgi-bin/ shows, that there is no awstats.pl
Im sure, that i choose the installation of awstats during setup. Under /etc/apache2/sites-enabled is a @01_awstats.conf with following content:
- <Proxy *> Require all granted</Proxy>Alias /awstatsicons "/usr/share/awstats/icon/"<Directory "/usr/share/awstats/icon/"> Options None AllowOverride None Require all granted</Directory><VirtualHost 127.0.0.1:80> RewriteEngine on RewriteRule ^/stats/(.+)/$ http://localhost/awstats/?config=$1 [P] RewriteRule ^/stats/(.+)/awstats.pl(.*)$ http://localhost/awstats/$1 [P] RewriteRule ^/stats/(.*)$ http://localhost/stats/$1/ [R] ScriptAlias /awstats "/usr/lib/cgi-bin/awstats.pl" <Directory /usr/lib/cgi-bin> Options +ExecCGI AllowOverride Limit DirectoryIndex awstats.pl Require all granted </Directory></VirtualHost>
In the apropiate config file of the domain is the following section (e.g. example.com):
- <Location /stats> RewriteEngine on RewriteRule ^(.+)?config=([^?&]+)(.*) $1?config=example.com&$3 [NC,L] AuthType Basic AuthName "Statistics for domain example.com" AuthUserFile /var/www/virtual/example.com/.htpasswd AuthGroupFile /var/www/virtual/example.com/.htgroup Require group statistics</Location>
So, it seems, that awstats is not installed during setup.
It gives no results.
What goes wrong and how can i force a setup for awstats for i-mscp if i install the package manually?