Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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 :) )

Posted

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..)

Posted

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.

Posted

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.

Posted

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. ;)

Posted

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.

Posted (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 by TCH-Dick
Posted

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

  • 2 weeks later...
Posted
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.

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...