AwStats plugin for DA [Still in BETA]

cron updates HELP

Currently my crontab file looks like this,

-----------------------------------------------------
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
-----------------------------------------------------

I need to find a method of putting the update stats command current run manually in to run every hour.

I understand the command is "/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl"

But every time I try then wait for a few hours, nothing happens all stats just remain unchanged.

I am sure there are other people with this problem as well.

PLEASE help ...thanks

Stephen
 
I installed and got this when trying to view the user's stats page.

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Do I need to wait for a cron to run first?
 
from error log

[14:16] <!Chrysalis> [Sun Oct 17 12:08:18 2004] [error] [client 82.3.32.75] Premature end of script headers: /home/admin/domains/XXXXXXX/public_html/awstats/awstats.pl
 
I installed the plugin 1.5 and there were no errors, but the stats are not counting.

There are also no errors in the error log.

I also waited 24 hours just to be sure and watched againg. I installed it on a user with 1 domain and on a user with multiple domains, both the stats keep empty.
 
Chrysalis said:
from error log

[14:16] <!Chrysalis> [Sun Oct 17 12:08:18 2004] [error] [client 82.3.32.75] Premature end of script headers: /home/admin/domains/XXXXXXX/public_html/awstats/awstats.pl

This is a rights problem. Could you check the permissions on

/home/admin/domains/XXXXXXX/public_html/awstats/awstats.pl

and be sure it is Executable.

installed the plugin 1.5 and there were no errors, but the stats are not counting.

There are also no errors in the error log.

I also waited 24 hours just to be sure and watched againg. I installed it on a user with 1 domain and on a user with multiple domains, both the stats keep empty.

Do you get the normal awstats page ? If so check the log file of the user /var/log/httpd/domains/domainname.log

If it has entry's in it check the /etc/awstats/awstats.domainname.conf and check the LogFile=[file]

It should be pointing to the users log files of httpd (apache).
 
updates?

Thought I would check and see if you had figured out how to remedy the issue found on my setup..

Thanks for the work!
 
fusionictnl said:
Do you get the normal awstats page ? If so check the log file of the user /var/log/httpd/domains/domainname.log

If it has entry's in it check the /etc/awstats/awstats.domainname.conf and check the LogFile=[file]

It should be pointing to the users log files of httpd (apache).

The log file in /var/log/httpd/domains/domain.nl.log is correct checked it with tail -f domain.nl.log
Also checked in /etc/awstats/awstats.www.domain.nl.conf the LogFile= option is pointing to /var/log/httpd/domains/domain.nl.log

But the stats are staying empty:confused:
 
Does the error.log show anything of that specific domain ? (Or are it all domains?) Does the suexec_log show anything ?? (/var/log/httpd/suexec) ?
 
fusionictnl said:
Owner is the user of that domain ?

Check the /var/log/httpd/suexec log file ;)

[2004-10-19 13:36:23]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: awstats.pl
[2004-10-19 13:36:23]: error: target uid/gid (1001/1005) mismatch with directory (1001/1004) or program (1001/1004)

so I do a chown admin:admin then?
 
ahh looked at the error and fixed it, seems . owner:group has to match that of awstats.pl.

is there a way to remove this requirement?
 
Depends on who's files these are.

For /home/user1/public_html/awstats

The files are user1:user1 (Owner user1)

For /home/admin/public_html....

The files are admin:admin (Owner admin)

The permissions should be set correctly to the user of wich the domain/folder is
 
my admin is in wheel group so has admin:wheel

directadmin is trying to use it as admin:admin (linux system), which is what caused the problem.

I have a duff admin group which I made to satisfy apache, so just set the ownership of the dir to admin:admin which shouldnt break anything as the admin user is still the owner, but this is another freebsd incompatibility with directadmin.
 
Problem found perhaps? Now how to fix.

I was exploring around and found some information from a past awstats install in the httpd.conf file. What should be in the httpd.conf file in regards to awstats?
 
Re: Problem found perhaps? Now how to fix.

davidb said:
I was exploring around and found some information from a past awstats install in the httpd.conf file. What should be in the httpd.conf file in regards to awstats?

We'll my plugin doesn't change the httpd.conf, so I don't know if you did it ;)

For awstats there doesn't have to be any entry!
 
Ok I got another problem now, it is working great on my admin user but any other user's made on directadmin dont have any button for awstats. Is there something I need to do to enable it for all users?
 
Back
Top