Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    191

    Question When is cPanel going to include AWStats 6.6?

    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?
    Last edited by johnburk; 01-23-2007 at 07:34 AM.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Jun 2006
    Posts
    191

    Default

    Thank you. I have added it to http://bugzilla.cpanel.net/show_bug.cgi?id=3776

  4. #4
    Registered User
    Join Date
    Sep 2005
    Location
    England
    Posts
    1

    Default

    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. #5
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    620

    Default 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
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  6. #6
    Member
    Join Date
    Apr 2004
    Posts
    6

    Default

    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. #7
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    620

    Default

    Quote Originally Posted by Wolli View Post
    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
    It is not a problem, just ignore and enjoy improved AWStats
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  8. #8
    aww
    aww is offline
    Member
    Join Date
    Feb 2005
    Posts
    79
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Many thanks, seems to work for me but I did get this error after running, is there a problem?

    chattr: No such file or directory while trying to stat /usr/local/cpanel/3rdparty/bin/awstats.pl
    chattr: No such file or directory while trying to stat /usr/local/cpanel/3rdparty/bin/plugins
    chattr: No such file or directory while trying to stat /usr/local/cpanel/3rdparty/bin/lib
    chattr: No such file or directory while trying to stat /usr/local/cpanel/3rdparty/bin/lang
    note the files/directories ARE actually there... did something change or did I goofup?
    Last edited by aww; 04-12-2007 at 09:38 AM.

  9. #9
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    620

    Default

    Quote Originally Posted by aww View Post
    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?
    Seems like you run VPS which doesn't support chattr.
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  10. #10
    aww
    aww is offline
    Member
    Join Date
    Feb 2005
    Posts
    79
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by ispro View Post
    Seems like you run VPS which doesn't support chattr.
    Ah, will it still work okay without chattr being applied?

    (I take it a chmod 444 is not quite the same effect?)
    Last edited by aww; 04-12-2007 at 11:17 AM.

  11. #11
    Member
    Join Date
    Dec 2004
    Location
    Edinburgh, Scotland
    Posts
    37

    Default 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. #12
    Member
    Join Date
    Feb 2005
    Posts
    312

    Default

    Quote Originally Posted by grindlay View Post
    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.
    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. #13
    aww
    aww is offline
    Member
    Join Date
    Feb 2005
    Posts
    79
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I'd love to see this script updated for 6.8 which has some nice fixes/new features.

  14. #14
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    620

    Default

    Just edit version in the script and it should works just fine.

    Let me know if you need further assistance.
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

Similar Threads & Tags
Similar threads

  1. Pre Main Include or Post VirtualHost Include ?
    By SecondSight in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-15-2010, 01:07 AM
  2. Is there away to include in cpanel backuk
    By cthosting in forum cPGS Discussions
    Replies: 4
    Last Post: 08-09-2010, 11:36 AM
  3. transfer site and include old awstats data from standalone install?
    By boatdesign in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-28-2005, 06:42 PM
  4. Include path for cPanel
    By danielaugustus in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-18-2003, 09:13 PM
  5. CPanel Include
    By NetGeek in forum Themes and Branding
    Replies: 5
    Last Post: 07-19-2002, 04:10 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube