Problem whit Awstats (/usr/bin/perl)

February 17, 2015 2.4k views


When i visit my awstats pages i get only file information like this:

# Free realtime web server logfile analyzer to show advanced web statistics.
# Works from command line or as a CGI. You must use this script as often as
# necessary from your scheduler to update your statistics and from command
# line or a browser to read report results.
# See AWStats documentation (in docs/ directory) for all setup instructions.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <>.
require 5.007;

#use warnings;      # Must be used in test mode only. This reduce a little process speed
#use diagnostics;   # Must be used in test mode only. This reduce a lot of process speed
use strict;
no strict "refs";
use Time::Local
  ; # use Time::Local 'timelocal_nocheck' is faster but not supported by all Time::Local modules
use Socket;
use Encode;
use File::Spec;

# Defines
use vars qw/ $REVISION $VERSION /;
$REVISION = '20140126';
$VERSION  = "7.3 (build $REVISION)";

Any suggestions on what is wrong? 
  • Have you configured apache to handle CGI scripts? You will need to ensure that the directory where your scripts are located is set to +ExecCGI in your apache configuration file.

  • I have setup my apache server whit help off and i am not sure that it is configured to handle that. When i ask them about it they gave me this info: We only support PHP apps. We don’t support CGI. It’s possible to customize your server to support CGI, but we can’t provide help with that.

2 Answers

Did you think of any alternative like GoStats? Installation & management dashboard is super easy compare to Awstats.

Thats maybe can be something.

Have another answer? Share your knowledge.