• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved awstats images (icons) not displayed (error 404)

Sergio Manzi

Regular Pleskian
OS: CentOS Linux 7.4.1708 (Core)‬ (but I had the same issue with 7.3)
Plesk: Onyx Version 17.5.3 Update #21

For all my subscriptions awstats pages are ill-displayed as I'm getting 404 for all images (e.g.: /awstats-icon/clock/hr4.png) and so the "alt" text is displayed instead.

See the attached snippet of the monthly traffic as an example:
awstats-monthly.png
Where should I start debugging this?

Thanks in advance,

smz
 
Do you have icons directories with content there:

# ll /var/www/html/awstats/icon/
total 36
drwxr-xr-x 2 root root 4096 Sep 15 05:21 browser
drwxr-xr-x 2 root root 4096 Sep 15 05:21 clock
drwxr-xr-x 2 root root 4096 Sep 15 05:21 cpu
drwxr-xr-x 2 root root 12288 Sep 15 05:21 flags
drwxr-xr-x 2 root root 4096 Sep 15 05:21 mime
drwxr-xr-x 2 root root 4096 Sep 15 05:21 os
drwxr-xr-x 2 root root 4096 Sep 15 05:21 other
 
Hello @IgorG and thanks for helping!

You pointed me to the solution: for unknown reasons (should I investigate? how?) the entire /var/www/html/awstats/ directory was missing from one of my VPS.

As I've set things up, that is my primary server (call it "Amsterdam"), but I have a second one ("Frankfurt") which is independently configured for the same domains and kept in "warm" standby in case of need (to activate it I just change my DNS configuration, which is handled externally).

On Frankfurt the /var/www/html/awstats/ was intact, so by just rsyncing it to Amsterdam the issue was solved.

Many thanks again,

Sergio
 
Back
Top