Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    84

    Default awstats 6.4

    Has anyone tried updating awstats to 6.4? I tried this evening and had no luck, so I am not sure what I am doing incorrectly.

  2. #2
    Member
    Join Date
    Sep 2004
    Location
    U.K.
    Posts
    265

    Default

    I have'nt tryied yet is it a security release or just a general one ?

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    84

    Default

    It is a general update. I was going to attempt it, but 6.5 is about 90% complete. They have a non-stable version of it out there already. So I thought I would try it on the test machine.

  4. #4
    Member
    Join Date
    Oct 2004
    Posts
    106

    Question Awstats 6.4 or 6.5

    Has anyone attempted this update yet? RPM build doesn't work, and I noticed the structure in Cpanel is different than the structure of the file Awstats provides.
    Anyone?

  5. #5
    Member
    Join Date
    Oct 2003
    Location
    London, UK
    Posts
    5

    Default

    Well, I'm on Awstats 6.3 - downloaded 6.4 from sourceforge/awstats and it successfully installed via the 'install rpm' feature of webmin as cpanel's rpm list doesn't seem to have awstats as a choice.

    However, the awstats pages are still showing version 6.3 build 1800 so I guess it's installed in a different location compared to where rpm things it's supposed to be installed.

    But I'm busy with other stuff so will leave it to another day to have another look unless someone else comes up with any ideas first.

    Cheers
    Charles
    Last edited by amanoffewwords; 05-15-2005 at 09:08 AM.

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

    Default How-to upgrade

    Read my advices and tiny script that install AWStats 6.4 correctly into cPanel:
    http://forums.cpanel.net/showpost.ph...93&postcount=4

    We do run AWStats 6.4 at every server we has for enough time and has no issues with it nor reports/claims from customers.

    Actually, the script will work for 6.5 - just replace 6.4 to 6.5. However I would wait for stable release and then test it...
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  7. #7
    Member
    Join Date
    Apr 2005
    Posts
    318

    Default

    This script is great! Updated to 6.4 in a sec.
    http://www.crohoster.com/
    quality hosting services and managed dedicated servers

  8. #8
    Member
    Join Date
    Oct 2003
    Location
    London, UK
    Posts
    5

    Default

    Worked for me too - great stuff.

    Thanks for the sharing the script Ispro

    Cheers
    Charles

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

    Default Enjoy, guys!

    ...we got many interesting and usefull tweaks at this forum, why not to share some of our own?

    By the way, this forum lacks of one very needed functionality - some sort of Knowledge base integrated into Forum. It should be moderated, but it could bring everyone much better choice when searching for solution...
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  10. #10
    Member
    Join Date
    Apr 2005
    Posts
    318

    Default

    Quote Originally Posted by ispro
    ...we got many interesting and usefull tweaks at this forum, why not to share some of our own?
    I think there is a lot of beginners and those who have experience ask money for it. It will be great if cPanel personel make that KB for beginners and advanced users if users do not share their own.
    http://www.crohoster.com/
    quality hosting services and managed dedicated servers

  11. #11
    Member Shane_F's Avatar
    Join Date
    Jan 2005
    Posts
    23

    Default changed the script around...

    I made a switch so it can be forced to update to any version without having the number being static:

    Code:
    #!/bin/sh
    
    if [ -z $1 ]; then
     echo "AWStats Manual Update - Need to supply version number. manualawstats VER";
     exit
    else
     VER=$1;
    fi
    
    echo "Installing AWStats version $VER to /usr/local/cpanel/3rdparty/bin directory. cPanel patch will be applied.";
    
    download() {
    cd /root
    rm -rf awstats-* ; 
    echo "Getting the package...";
    wget -N --timeout=10 --tries=1 http://switch.dl.sourceforge.net/sourceforge/awstats/awstats-$VER.tgz > /dev/null 2>&1 ; 
    }
    
    install() {
    echo "Unpacking...";
    tar zxf awstats-$VER.tgz ;
    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 -N -i /usr/local/cpanel/3rdparty/bin/awstats.diff /usr/local/cpanel/3rdparty/bin/awstats.pl;
    echo "Chattr'ing files...";
    chattr -i /usr/local/cpanel/3rdparty/bin/awstats.pl;
    chattr -i /usr/local/cpanel/3rdparty/bin/plugins/*;
    chattr -i /usr/local/cpanel/3rdparty/bin/lib/*;
    chattr -i /usr/local/cpanel/3rdparty/bin/lang/*;

  12. #12
    Member ryno267's Avatar
    Join Date
    Mar 2004
    Location
    Chandler, AZ
    Posts
    214
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    well for whatever reason I couldn't get a file to run so I did it line by line by hand and it worked great...

    Gives me a better idea of how that stuff works anyways...

    Thanks! 6.4 is coolio

Similar Threads & Tags
Similar threads

  1. Replies: 5
    Last Post: 11-09-2009, 06:18 AM
  2. Awstats?
    By jhyland87 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-27-2009, 06:27 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
    By shadow777 in forum New User Questions
    Replies: 4
    Last Post: 02-14-2006, 02:17 PM
  5. how to upgrade awstats-6.1 to awstats-6.2
    By binumvk in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-08-2004, 10:19 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube