The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

When is cPanel going to include AWStats 6.6?

Discussion in 'General Discussion' started by johnburk, Jan 23, 2007.

  1. johnburk

    johnburk Well-Known Member

    Joined:
    Jun 23, 2006
    Messages:
    241
    Likes Received:
    0
    Trophy Points:
    16
    On januari 6th AWstats 6.6 was launched. Currently cPabel is still using AWStats 6.4 from 16 Mar 2005.

    I am using WHM 10.8.0 cPanel 10.9.0-R118 and was wondering if anyone here knows when cPanel is going to include the latest AWStats?
     
    #1 johnburk, Jan 23, 2007
    Last edited: Jan 23, 2007
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You'd need to ask them directly. Probably the best thing to do would be to check bugzilla and if there isn't an enhancement entry for it, create one.
     
  3. johnburk

    johnburk Well-Known Member

    Joined:
    Jun 23, 2006
    Messages:
    241
    Likes Received:
    0
    Trophy Points:
    16
  4. PyrOxide

    PyrOxide Registered

    Joined:
    Sep 23, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    England
    Any news on whether this is going to appear in any cpanel updates in the near future?

    Or is there a way we can manually install it, without breaking config files and such, and not having cpanel overwrite it with the older version when it does updates etc.?
     
  5. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    Script to install AWStats 6.6 on cPanel.

    First of all you NEED to place attached awstats.6.6.diff.txt file into "/usr/local/cpanel/3rdparty/bin/awstats.6.6.diff". (Remove .txt from the end!)
    Then create bash script from contents below and run it.

    You may wish to place the call to this script into /scripts/postupcp to force AWStats update after cPanel updates.

    Enjoy!

    Code:
    #!/bin/bash
    
    VER='6.6';
    echo "Installing AWStats version $VER to /usr/local/cpanel/3rdparty/bin directory. Own patch will be applied.";
    
    download() {
    cd /root
    /bin/rm -rf awstats-* ; 
    echo "Getting the package...";
    wget -N --timeout=10 --tries=1 http://switch.dl.sourceforge.net/sourceforge/awstats/awstats-$VER.tar.gz > /dev/null 2>&1 ; 
    }
    
    install() {
    echo "Unpacking...";
    tar zxf awstats-$VER.tar.gz ;
    cd awstats-$VER;
    chown -R root.root *;
    echo "Chattr'ing and removing target AWStats files...";
    chattr -i /usr/local/cpanel/3rdparty/bin/awstats.pl;
    chattr -i -R /usr/local/cpanel/3rdparty/bin/plugins;
    chattr -i -R /usr/local/cpanel/3rdparty/bin/lib;
    chattr -i -R /usr/local/cpanel/3rdparty/bin/lang;
    rm -f /usr/local/cpanel/3rdparty/bin/awstats.pl;
    rm -rf /usr/local/cpanel/3rdparty/bin/plugins;
    rm -rf /usr/local/cpanel/3rdparty/bin/lib;
    rm -rf /usr/local/cpanel/3rdparty/bin/lang;
    echo "Copying new files...";
    cd wwwroot/cgi-bin;
    chmod -R g-w,o-w *;
    cp -p awstats.pl /usr/local/cpanel/3rdparty/bin/awstats.pl;
    cp -pr plugins /usr/local/cpanel/3rdparty/bin/plugins;
    cp -pr lib /usr/local/cpanel/3rdparty/bin/lib;
    cp -pr lang /usr/local/cpanel/3rdparty/bin/lang;
    echo "Applying cPanel patch...";
    patch -Np1 -i /usr/local/cpanel/3rdparty/bin/awstats.6.6.diff /usr/local/cpanel/3rdparty/bin/awstats.pl;
    echo "Chattr'ing files...";
    chattr -i /usr/local/cpanel/3rdparty/bin/awstats.pl;
    chattr -i -R /usr/local/cpanel/3rdparty/bin/plugins/;
    chattr -i -R /usr/local/cpanel/3rdparty/bin/lib/;
    chattr -i -R /usr/local/cpanel/3rdparty/bin/lang/;
    
    cd /root;
    /bin/rm -rf awstats-* ;
    
    echo "Done!";
    }
    
    download
    install
    
     

    Attached Files:

  6. Wolli

    Wolli Member

    Joined:
    Apr 12, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Thank you for the great script.

    Concerning the patch I get an error message when I run the script:

    Applying cPanel patch...
    missing header for unified diff at line 3 of patch
     
  7. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    It is not a problem, just ignore and enjoy improved AWStats :)
     
  8. aww

    aww Well-Known Member

    Joined:
    Feb 10, 2005
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Many thanks, seems to work for me but I did get this error after running, is there a problem?

    note the files/directories ARE actually there... did something change or did I goofup?
     
    #8 aww, Apr 12, 2007
    Last edited: Apr 12, 2007
  9. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    Seems like you run VPS which doesn't support chattr.
     
  10. aww

    aww Well-Known Member

    Joined:
    Feb 10, 2005
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Ah, will it still work okay without chattr being applied?

    (I take it a chmod 444 is not quite the same effect?)
     
    #10 aww, Apr 12, 2007
    Last edited: Apr 12, 2007
  11. grindlay

    grindlay Active Member

    Joined:
    Dec 8, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Edinburgh, Scotland
    cPanel Access Level:
    Root Administrator
    awstats update 6.6

    Thanks for the script, worked like a charm.
    If you want to run awstats immediately to check version:
    ./scripts/runstatsonce
    Presumably, cPanel will not overwrite 6.6, with 6.x, neither will it update 6.x unless you call the script explicitly?
    I don't have /scripts/postupcp, can I use /scripts/upcp ?
    G.
     
  12. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    create /scripts/postupcp

    UPCP will get overwritten by cpanel, postupcp is designed for you to add whatever things you want done AFTER cpanel does it's update and puts things the way they want it.
     
  13. aww

    aww Well-Known Member

    Joined:
    Feb 10, 2005
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I'd love to see this script updated for 6.8 which has some nice fixes/new features.
     
  14. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    Just edit version in the script and it should works just fine.

    Let me know if you need further assistance.
     
Loading...

Share This Page