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.

awstats 6.4

Discussion in 'General Discussion' started by linuxman, Apr 3, 2005.

  1. linuxman

    linuxman Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    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. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    I have'nt tryied yet is it a security release or just a general one ?
     
  3. linuxman

    linuxman Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    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. PanelGuy

    PanelGuy Well-Known Member

    Joined:
    Oct 13, 2004
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    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. amanoffewwords

    Joined:
    Oct 23, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London, UK
    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
     
    #5 amanoffewwords, May 15, 2005
    Last edited: May 15, 2005
  6. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    How-to upgrade

    Read my advices and tiny script that install AWStats 6.4 correctly into cPanel:
    http://forums.cpanel.net/showpost.php?p=181393&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...
     
  7. MMarko

    MMarko Well-Known Member

    Joined:
    Apr 18, 2005
    Messages:
    316
    Likes Received:
    0
    Trophy Points:
    16
    This script is great! Updated to 6.4 in a sec.
     
  8. amanoffewwords

    Joined:
    Oct 23, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London, UK
    Worked for me too - great stuff.

    Thanks for the sharing the script Ispro

    Cheers
    Charles
     
  9. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    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...
     
  10. MMarko

    MMarko Well-Known Member

    Joined:
    Apr 18, 2005
    Messages:
    316
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  11. Shane_F

    Shane_F Member

    Joined:
    Jan 21, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    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. ryno267

    ryno267 Well-Known Member

    Joined:
    Mar 3, 2004
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chandler, AZ
    cPanel Access Level:
    Root Administrator
    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
     
Loading...

Share This Page