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.
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.
I have'nt tryied yet is it a security release or just a general one ?
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.
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?
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.
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
This script is great! Updated to 6.4 in a sec.
http://www.crohoster.com/
quality hosting services and managed dedicated servers
Worked for me too - great stuff.
Thanks for the sharing the script Ispro
Cheers
Charles
...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
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.Originally Posted by ispro
http://www.crohoster.com/
quality hosting services and managed dedicated servers
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/*;
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