new awstats

Fester,

I added the following html to my usr/local/directadmin/data/skins/enhanced/user/user_stats.html file:
Code:
<table class=list>
<tr>
	<td class=listtitle>Additional Statistics</td>
</tr>
<tr>
	<td class=list><a href="/CMD_WEBALIZER/|domain|/index.html">Webalizer Statistics</a></td>
</tr>
</table>

I agree that it'd be nice if DA included a link to both by default.
 
Easily...

thx, but i'd like them to be available like: /stats/ and /awstats/

You can accomplish this pretty easily.

Code:
cd ~<user>/domains/<domain>/public_html/
ln -s ../awstats

NB: Where <user> is your username
<domain> is the domain you want the stats on.

/stats should still be webalizer
/awstats should be awstats.

If the webalizer (/stats) is missing.... just replace ln -s ../awstats with ln -s ../stats

Cheers Matt.
 
10 Steps to process old log files.

It is possible to import de old stats into the new one?
(from the AwStats plugin).

Yes, but you'll need the old log files. If you do have them... then follow these steps.
  1. You need to delete the .txt file in the .data directory in awstats
  2. Change the .conf file the same directory to point to where your 'old logs are'.
  3. Take a copy of the /usr/local/directadmin/scripts/awstats_process.sh ie: cp ./awstats_process.sh ./awstats_genold.sh
  4. Edit awstats_genold.sh.
  5. Change the line "LOGDIR=/var/log/httpd/domains" to where your log files are.
  6. Extract the logfile in the format (domain[.sub].log and domain[.sub.]error.log into the logdir specified above.
  7. Run ./awstats_genold.sh <user> <domain> [<sub>]
  8. Rinse and repeat Steps 6 and 7.
  9. Remember to change back the *.conf file found in the awstats/.data file to the original location.
  10. Run ./awstats_process.sh <user> <domain> (<subdomain>) finally to process your current log file.

Hope that helps. :)


Update: Argg... just re-read the question. You should be able to move the old stuff into the new location. Edit the conf file so it now makes sense (in this new location). The run ./awstats_process.sh found in the scripts directory of ya DA install.
 
Last edited:
Check if you are able to update it with:
Code:
echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
If not - try to set webalizer=0 and awstats=1 in /usr/local/directadmin/conf/directadmin.conf. Then do:
Code:
service directadmin restart
echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
Does it work now?

Does not work here :confused:
 
me?

yes, from /usr/local/directadmin/scripts/awstats.sh

says awstats is installed, but there is nothing to configure in directadmin, is that normal?

the script to update stats works, but i need to remove each /awstats folder and replace it with a symlink to ../awstats

Are you sure you have AWstats installed?
 
Yes, it's normal. Statistic is under "Site Summary / Statistics / Logs" on "User level".
 
asStats Previous Months

Not sure if everybody has this issue but I would like to view previous months statistics in awStats just like I could in Webalizer..

Not sure if this is some sort of configuration that has to be make in awStats to allow for this, but all I can see in my version is the statistics for the current month with no detailed view of months previous..

If anybody knows how to set up awStats to allow detailed viewing for specific months for the past year just like Webalizer does, please advise..

Cheers
 
Yep, the link smtalk posted is it for viewing previous months (starting from this last release of DA). Just a note that the month selector is in DA and not in the awstats page. On your stats page in DA will be a dropdown selector for all the months that you can view.

John
 
Problem is that I cannot update to 1.323 because of some sort of problem that DA has with one of their hard drives.. At least I couldn't a few days ago.

Is there a way to bypass the update and get the previous months stats.

If yes, can you supply the exact code/steps that I would need to insert in order to activate this function..

Yep, the link smtalk posted is it for viewing previous months (starting from this last release of DA). Just a note that the month selector is in DA and not in the awstats page. On your stats page in DA will be a dropdown selector for all the months that you can view.

John
 
The 4.4 binaries are just linked to the 4.x binaries now, so you should be good to update DA.

John
 
Hi John Thanks..

I just got it to update but I still cannot view last months statistics...

Will only give me access to stats for this month (Present) yet AW is displaying the history for the 4 or 5 days I had it running last month.

Code:
Sep 2008 1821 2524 5780 22905 98.59 MB 
Oct 2008 794 1027 2667 11480 41.63 MB


The 4.4 binaries are just linked to the 4.x binaries now, so you should be good to update DA.

John
 
Last edited:
Back
Top