KevinW Posted December 30, 2003 Posted December 30, 2003 I have a customer that wishes to view the AWSTATS, but they do not need access to the rest of cPanel. Is there a way to do this? Or is there a way to automatically generate an AWSTATS report on a regular basis (daily, weekly, monthly), so I can send it to them? I have tested printing the AWSTATS to a PDF file (using PDF995) and that works great. It's just that right now it would be a manual process on my side, which I don't have time to deal with. Thanks! -kw Quote
Nick_ Posted December 30, 2003 Posted December 30, 2003 As far as I know...there is no automated way of doing this. I believe you would probably have to access it through CPanel, or something manual, such as what you said. Quote
boxturt Posted December 30, 2003 Posted December 30, 2003 They could just download the AWstats program and then fetch the raw logs on their own machine maybe? (is what I used to have to do before TCH ) Quote
Nick_ Posted December 30, 2003 Posted December 30, 2003 Kevin, Working on this as we speak, I'll talk to the Head Guru and maybe he'll implement server wide so www.domain.com/awstats goes straight to the awstats (today is a slow day at work..) Quote
borfast Posted December 30, 2003 Posted December 30, 2003 I could be wrong but I don't think you can make it go directly into AWstats because that would mean giving public access to a part of cPanel. I suppose the only sollution for this is to install AWStats directly on your account and provide a public link for it. Quote
Nick_ Posted December 30, 2003 Posted December 30, 2003 (edited) Patience my friend...wait and see... Edited December 30, 2003 by nikko Quote
Nick_ Posted December 30, 2003 Posted December 30, 2003 Okay, so this took me way longer than it should have, but, I became obsessed with making it work... Kevin, if you are OK with these users at least having the cpanel username/password, than the below code, inserted into your .htaccess at the top (or anywhere) will allow them to go to www.example.com/awstats and it'll prompt for cpanel username/password and than direct them to AWStats without having to go through CPanel at all. Code is below: >Options +FollowSymLinks RewriteEngine on RewriteCond %{SERVER_NAME} !^www.(.+) [NC] RewriteRule ^awstats$ http://%{SERVER_NAME}:2082/awstats.pl?config=%{SERVER_NAME}&lang=en [L,R] RewriteCond %{SERVER_NAME} ^www.(.+) [NC] RewriteRule ^awstats$ http://%{SERVER_NAME}:2082/awstats.pl?config=%1&lang=en [L,R] This will allow the user to go to either: www.example.com/awstats OR example.com/awstats Like I said, they will still be prompted for cpanel username/password, however they won't actually have to go into Cpanel. Quote
TCH-Dick Posted December 30, 2003 Posted December 30, 2003 Try this , then there is no need to share password to cPanel. http://forums.cpanel.net/showthread.php?s=...ghlight=awstats Quote
Nick_ Posted December 30, 2003 Posted December 30, 2003 yeah..if it's not for you, or a user who has the username, password, than installing another version of awstats works as well. However, if you can use the CPanel username/password, I wouldn't advise doing this. Not only is it a bit more work, it also causes more load on the server. Quote
TCH-Dick Posted December 31, 2003 Posted December 31, 2003 it also causes more load on the server How, it only updates once a day? Quote
Nick_ Posted December 31, 2003 Posted December 31, 2003 If every user did this... and had 2 versions of AwStats updating once a day...granted, every user won't do this, but the fewer the better, there's nothing wrong with the default installation. Now, if you need to access it without password, by all means, that how to is best, but if you don't mind using a password...why bother with the extra process? Just not neccessary, AWStats is the most cpu expensive (and best.) of the three statistics applications available with CPanel as it is.] On the same topic however, if you want it to update more often, this will work for that also, just simply need a cronjob to do so. Again, if it's not neccessary, it's just extra load. Quote
TCH-Dick Posted January 1, 2004 Posted January 1, 2004 (edited) I have put together a simple solution to this(with a little help). I am still learning about php so any input is great. AWStats Access Provides access to AWStats outside of cPanel, for when you don't want users to have full access Edited January 1, 2004 by TCH-Dick Quote
TCH-Dick Posted January 1, 2004 Posted January 1, 2004 (edited) Update: Fixed error/stats not displaying when choosing date other than current date Click Here Edited January 2, 2004 by TCH-Dick Quote
KevinW Posted January 2, 2004 Author Posted January 2, 2004 To all: I've taken TCH-Dick's zip file and instructions, repackaged it slightly and have posted it to the TCH Help website (under the Statistics link). Click here! And since I was the one who originated this message thread, let me be the first to thank Dick for his effort. It is EXACTLY what I needed for one of my customers. -kw Quote
arvind Posted January 12, 2004 Posted January 12, 2004 where are the awstats logs stored because I have an MT plugin designed to just read from them and display recent referals on my page how would I do so http://www.estey.com/mt/index.cgi?AWStatsReferers Quote
vangrieg Posted January 12, 2004 Posted January 12, 2004 AWStats is the most cpu expensive (and best.) It's a little off-topic, but could you elaborate please? How is it best? It's the first time I use it and I'm very unimpressed so far. It doesn't seem to show more information than, say, Webalizer. But its browser detection part, unlike Webalizer's, is awful. It misidentifies Safari and Konqueror as Mozilla and cannot properly detect Opera with default ID setting, showing it as MSIE. Quote
yeknoM Posted August 15, 2007 Posted August 15, 2007 were can just the images be found as they arn't included in the .zip anymore..? Quote
TCH-Bruce Posted August 15, 2007 Posted August 15, 2007 The images are not needed. The script uses the ones provided with the Awstats programming. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.