Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Feb 2004
    Posts
    65

    Default HOW TO: Update to Awstats 6.5

    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:
    Code:
    else { @PossibleConfigDir=("$DIR","/etc/awstats","/usr/local/etc/awstats","/etc","/etc/opt/awstats"); }
    replace it with:
    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");
    	}
    4) Find this line:
    Code:
    warning("$message");
    comment it out to:
    Code:
    #warning("$message");
    5) Upload to your webserver
    6) move the old awstats.pl file:
    Code:
    mv /usr/local/cpanel/3rdparty/bin/awstats.pl /usr/local/cpanel/3rdparty/bin/awstats.pl.bak
    7) Move the new one in place:
    Code:
    mv /path/to/awstats.pl /usr/local/cpanel/3rdparty/bin/awstats.pl
    8) Set proper permissions:
    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

  2. #2
    Member
    Join Date
    Feb 2004
    Posts
    65

    Default

    Here is the diff file:
    Code:
    1135c1135,1140
    < 	else { @PossibleConfigDir=("$DIR","/etc/awstats","/usr/local/etc/awstats","/etc","/etc/opt/awstats"); }
    ---
    > 	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");
    > 	}
    > 	#else { @PossibleConfigDir=("$DIR","/etc/awstats","/usr/local/etc/awstats","/etc","/etc/opt/awstats"); }
    2237c2242
    < 						warning("$message");
    ---
    > 						#warning("$message");

Similar Threads & Tags
Similar threads

  1. Awstats not update
    By webstyler in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-06-2010, 04:42 AM
  2. Update in AWStats?
    By paulm in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-23-2007, 02:49 PM
  3. Problem in update of awstats - Problema na atualização do awstats
    By celobusana in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-26-2007, 04:49 PM
  4. awstats doesnt update
    By SEJ in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-10-2004, 08:14 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube