Subscription creation fails with error: Unable to find the awstats template file

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:18:27 UTC

Modified:

2017-01-24 12:42:27 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Subscription creation fails with error: Unable to find the awstats template file

Symptoms

Creation of a subscription fails with an error:

Error: hosting update is failed: webstatmng: Unable to find the awstats template file /etc/awstats/awstats.model.conf System error 2: No such file or directory

Cause

The file /etc/awstats/awstats.model.conf is missing.

    # ls /etc/awstats/awstats.model.conf
ls: cannot access /etc/awstats/awstats.model.conf: No such file or directory

Resolution

Using the command below (applicable for Debian) we can check whether there is an archive with this file:

    # dpkg -L awstats | grep conf
/usr/share/doc/awstats/examples/awstats.model.conf.gz

Unpack this archive:

    # gunzip /usr/share/doc/awstats/examples/awstats.model.conf.gz

Then copy extracted file to the appropriate folder:

    # cp /usr/share/doc/awstats/examples/awstats.model.conf /etc/awstats/awstats.model.conf

Another solution

The file /etc/awstats/awstats.model.conf/ is a symlink for /etc/awstats/awstats.conf .

Using the command below create a symlink:

# ln -s /etc/awstats/awstats.conf /etc/awstats/awstats.model.conf
Have more questions? Submit a request
Please sign in to leave a comment.