Git Browse Repository page shows perl code


I am trying to install Git and followed all commands. Git, gitweb and the Virtualmin plugin are installed.
I created a Git repository, but when I use the button Browse Repository it shows me perl code instead of a human readable page.


# gitweb - simple web interface to track changes in git repositories
# (C) 2005, Kay Sievers <>
# (C) 2005, Christian Gierke <>
# This program is licensed under the GPLv2

use strict;
use warnings;
use CGI qw(:standard :escapeHTML -nosticky);
use CGI::Util qw(unescape);
use CGI::Carp qw(fatalsToBrowser);
use Encode;
use Fcntl ':mode';
use File::Temp qw(tempfile);
binmode STDOUT, ':utf8';

my $cgi = new CGI;
my $version =		"264";
my $my_url =		$cgi->url();
my $my_uri =		$cgi->url(-absolute => 1);
my $rss_link =		"";

and more...

How can I fix this? Thanks in advance!