Awstats no icons no vertical graphs

Sre 28 Sep, 2016 12:34

If your awstats showing no vertical graphs or icons than path is problem

Awstats can't find its images because the path is broken in the standard centos installation - browser and country icons are missing, and the bar graphs are empty:

Here's how to fix it.

Each domain on your DV has additional apache configuration in /etc/httpd/conf.d/awstats.conf These files set an alias:

Alias /awstats-icon /usr/share/awstats/wwwroot/icon

which is correct. Unfortunately, the awstats configuration points elsewhere. Edit /etc/awstats/awstats.yourdomain.com.conf and change this line:

DirIcons="/icon"

to:

DirIcons="/awstats-icon"

Then repeat for awstats.foo.com-https.conf, awstats.foo.com-ftp.conf, awstats.foo.com-anon_ftp.conf (if you care about statistics for https, ftp, and anonymous ftp). The result should look like this:

Of course, since the graphs are correctly sized and visible even without the images being present, the path mistake is easy to miss. I've reported this to Mediatemple, but they didn't respond, so I'm posting it here for the benefit of any other DV users interested in optimizing their Awstats installations.

The Trackback URL for this entry is:

http://www.povej.net/forum/trackback.php?e=1076

Avtor Objave
There are no replies for this entry.
Pokaži sporočila: