AwStats plugin for DA [Still in BETA]

felosi said:
I installed this plugin, how can I update the awstats to 6.6?

Originally posted by http://awstats.sourceforge.net/
Beta version is 6.6 - 2006-06-05 00:40
This may be a not stable version. I put here for download for test purpose.
See ChangeLog or the Graphical CVS activity report to know what's new and for compatibility information with previous versions.
See Features for current features.
 
uh yeah but they have 6.5 still out knowing good and well there is 2 serioust remote command executions for it. They may say its not much but trust me you can get hacked easy. Its even in their security page about the problems with 6.5.
Id rather not use it anyway seeing is they cant release a simple patch for their own stuff rather say "well, our new beta version is patched, but dont use it" bl;ah blah ya know.
Anyway I got the update script on it tricked into updating to 6.6
only problem now is the awstats dont update the stats everyday, but its always done that, you have to manually do them
 
If your AWStats plug in is not auto updating you have it installed incorrectly.

make sure you have in the DA daily cron and that it executes BEFORE the tally's.
 
i dont see no incorrect way of installing it lol
It was done from da control panel.
I really dont know another way or how that could be messed up.
enlighten me please
 
felosi said:
i dont see no incorrect way of installing it lol
It was done from da control panel.
I really dont know another way or how that could be messed up.
enlighten me please

Did you read my post? You said it's NOT updating automatically, and I said that you did not install it correctly in the cron.
 
well there was never no cron instructions for it, I figured it would have installed with it.
What cron could I run to make all the awstats update itself a few times a day?

As it is now people hae to update manually and then if they dont do it everyday it messes their stats up
 
First of all, you should not allow users to update it themselves..that's where one of the insecurities lie. You can disable that in the

in /etc/cron.d/directadmin_cron

change:

PHP:
10 0 * * * echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue

to:

PHP:
10 0 * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl &&  echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue

This will run the DA tally AFTER the update..otherwise you won't get squat as the tally will move the logs out to their backups leaving empty backups.

(of course the 10 0 * * * may be different time.)

If you want to run it more then once, add this:

PHP:
*/4 30 * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl

That will run the stats update ever 4 hours on the half hour mark. (4:30, 8:30, 12:30, 4:30, 8:30, 12:30)
 
ok thanks, I added this here to update every 4 hours, this is right?

Code:
*/4 30 * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl &&  echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue
 
*/4 30 * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl && echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue

I think that should be

30 */4 * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl && echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue

Tell me if I am wrong. Crontab syntax is:
min
hour
day of month
month
day of week

So... */4 in min is every 4 minutes... :)
 
Little question:

I just installed this plugin, it's working but i would like to change a default settings: DirData

Default this plugin is saving all data in /etc/awstats.
I would like to change that in /home/*/doman.com/*/logs

Where and how can i change that so the statistics are automatically placed in the user dir?
 
Nevermind, just found out how:

awstatsinstall.php:

$cont = ereg_replace("#%DIRDATA%#","/home/{$domainToProcess['user']}/domains/{$domainToProcess['domain']}/stats/",$cont);

awstats.none.conf:

DirData="#%DIRDATA%#"

That way the data is logged on /domain.com/stats
 
if you have a small / partition which may well be the case on freebsd servers or you want to move the files for a different reason the easiest way is to just copy to the new location and them symlinking the dir to /etc/awstats.
 
Mostly i would like to keep all the data for a domain in it's own domain space.

The 'other' plugin available in the forums did that also.
 
If you want to update to version 6.6, change the following line in

/usr/local/directadmin/plugins/awstats/update/update.sh (or better yet, make a copy of the script).

PHP:
VER=`cat awstats.ver | egrep -e "http://prdownloads.sourceforge.net/awstats/awstats-(.){3,5}.tar.gz" -o | egrep -e "[0-9]{1,}\.[0-9]{1,}" -o`

to
PHP:
VER=`6.6`

or

VER=`cat awstats.ver | egrep -e "http://awstats.sourceforge.net/files/awstats-(.){3,5}.tar.gz" -o | egrep -e "[0-9]{1,}\.[0-9]{1,}" -o`

then run it.

Works like a charm.
 
Goodmorning,

Couple of days ago i installed this AWSTATS plugin.
Currently i'm running into the following error but i can't find where the problem is:

Running '"/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl" -update -config=domain.nl -configdir="/etc/awstats"' to update config domain.nl Update for config "/etc/awstats/awstats.domain.nl.conf"
With data in log file "/var/log/httpd/domains/domain.nl.log"...
Error: Couldn't open server log file "/var/log/httpd/domains/domain.nl.log" : No such file or directory Setup ('/etc/awstats/awstats.domain.nl.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

The cron is setup as follow:
10 0 * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl

permissions on the logfile are:

-rw-r--r-- 1 root root 29852 Aug 30 06:52 domain.nl.log



Has anyone an idea how i can fix this?
 
Back
Top