Ubuntu 14.04 Virtualmin - Cannot access awstats report using example.com/awstats/awstats.pl

Hi,

I am trying to give my customers access to view their awstats report. Virtualmin is setup as default and awstats is configured for their domains. Whenever I try to access www.example .com/awstats/awstats.pl it does not serve the awstats report but I am prompted to save the awstats.pl file.

I cannot get this to work. It is the same for all domains. From within Virtualmin the awstats reports are fine. But I do not want to allow users to login to Virtualmin. Only to access the awstats report directly.

Can anyone advise how his functionality can be enabled please.

Cheers
Spart

It turns out that mod_cgi was not enabled! Not sure I understand this.

Cheers
Spart