Koozali.org: home of the SME Server

Refresh AwStats 6.01-01

yehaah

Refresh AwStats 6.01-01
« on: January 05, 2006, 02:54:23 PM »
I've installed Swerts-Knudsens AwStats script, but my problem is, that I've added a domain, and removed a couple og domains, and the changes don't appear on the front page, where the links are visible.

How do I refresh this page without loosing my stats?

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Refresh AwStats 6.01-01
« Reply #1 on: January 06, 2006, 12:43:43 AM »
Do you mean cron jobs? That's how awstats updated it's pages. If you don't touch your logs, then you're not gonna loose anything.

yehaah

Refresh AwStats 6.01-01
« Reply #2 on: January 06, 2006, 08:23:25 AM »
If i go to the i-bay where AwStats are installed by the script (fx. www.domian.tld/stats) then there is a list of domains on the server. This could be:

www.domain.tld
web.domain.tld
www.personalwebsite.tld
www.hobbysite.tld
www.friendssite.tld

There represent a link to each of the domains present when I installed the script.

After buying a new domain and deleting a few of the older existing ones, the link page doesnt change. I thought that it was possible to change the URL part in the end of the page URL (It ends with the name of the site witch stats are being shown) but that didn't help either, so I have no idea if the new page gets any hits.

I'm afraid that if I rerun the script, I might delete all the stats for the other sites.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Refresh AwStats 6.01-01
« Reply #3 on: January 06, 2006, 01:40:30 PM »
The script to update awstats is
Code: [Select]

/sbin/e-smith/awstats-pp -s -n

Run that to see if it updates.
Then check /etc/crontab to see if there is an entry there for every 5 minutes.

Yes, you can just re-run the script and it should work. Awstats reads the apache logs, and therefore you should be fine.

yehaah

Refresh AwStats 6.01-01
« Reply #4 on: January 09, 2006, 03:41:21 PM »
This is wat I get with that command:

Quote
[root@linux root]# /sbin/e-smith/awstats-pp -s -n
bash: /sbin/e-smith/awstats-pp: No such file or directory
[root@linux root]#

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Refresh AwStats 6.01-01
« Reply #5 on: January 09, 2006, 05:03:11 PM »
Then there's your answer. You must reinstall!

gatox

re-installing awstats
« Reply #6 on: January 10, 2006, 07:13:53 AM »
Hi stuntshell,

I installed awstats from Swerts-Knudsens but like yehaah added a few domains and they still down show up any info, worst that that I lost all past info except for today and still no new data.

It still shows on top of the screen : never updated,  (See 'Build/Update' on awstats_setup.html page) but that page doesn't exist in any directory.

All of my awstats.domain.conf have been created but only one awstatstxxxxx.www.domain.txt has been created on 5 virtual domains.

Also no such file as awstats-pp under /sbin/e-smith nor anywhere else on my server after reinstalling awstats too.

Regards,

Luis-M.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Refresh AwStats 6.01-01
« Reply #7 on: January 10, 2006, 02:09:00 PM »
can you post your /etc/cron.hourly/awstats?

It seems that is missing something.

Quote
Also no such file as awstats-pp under /sbin/e-smith nor anywhere else on my server after reinstalling awstats too.

My bad, this is from an old script that uses an much earlier version than knuddi's, so disregard my comments.