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?
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.
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
Thank you. I have added it to http://bugzilla.cpanel.net/show_bug.cgi?id=3776
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.?
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
Reliable web-hosting, good resellers plans, web-design.
ISProHosting.com
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
Reliable web-hosting, good resellers plans, web-design.
ISProHosting.com
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?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
Last edited by aww; 04-12-2007 at 09:38 AM.
Reliable web-hosting, good resellers plans, web-design.
ISProHosting.com
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.
I'd love to see this script updated for 6.8 which has some nice fixes/new features.
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