• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 56
  • Last Modified:

AWstats on CentOS7

I have installed AWstats install on CentOS7, by following this guide https://panel.bullten.net/knowledgebase/59/Install-and-Configure-Awstats-in-CWP.html
When I visit http://mydomain.com/awstats/awstats.pl?config=mydomain.com all I get is a page of text as below,
#!/usr/bin/perl
#------------------------------------------------------------------------------
# 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 <http://www.gnu.org/licenses/>.
#------------------------------------------------------------------------------
require 5.007;

#$|=1;
#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;

Open in new window

That is just a small sample from the top, any ideas?
0
Leigh2004
Asked:
Leigh2004
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
It looks like your server is not setup to run Perl, the programming language used in AWstats.  No, I don't know how to set it up.  This page might help.  https://serverfault.com/questions/752272/run-perl-cgi-scripts-on-centos-7-with-apache-httpd
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now