This is actually extremely simple:
1) Download 6.5 from sourceforge:
http://prdownloads.sourceforge.net/a...ats-6.5.tar.gz
2) Extract awstats.pl file
3) Open awstats.pl and find the following line:
replace it with:Code:else { @PossibleConfigDir=("$DIR","/etc/awstats","/usr/local/etc/awstats","/etc","/etc/opt/awstats"); }
4) Find this line:Code:else { my $homedir = (getpwuid($>))[7]; my $awdir = "$homedir" . "/tmp/awstats/"; if ($ENV{'AWSTATS_SSL_DIR'}) { $awdir .= "ssl/"; } @PossibleConfigDir=("$DIR",$awdir,"/etc/opt/awstats","/etc/awstats","/etc","/usr/local/etc/awstats"); }
comment it out to:Code:warning("$message");
5) Upload to your webserverCode:#warning("$message");
6) move the old awstats.pl file:
7) Move the new one in place:Code:mv /usr/local/cpanel/3rdparty/bin/awstats.pl /usr/local/cpanel/3rdparty/bin/awstats.pl.bak
8) Set proper permissions:Code:mv /path/to/awstats.pl /usr/local/cpanel/3rdparty/bin/awstats.pl
Code:chown root:root /usr/local/cpanel/3rdparty/bin/awstats.pl chmod 0755 /usr/local/cpanel/3rdparty/bin/awstats.pl
You should be all good to go![]()



LinkBack URL
About LinkBacks
Reply With Quote




