AwStats plugin for DA [Still in BETA]

Well I found out today that ruunning this in cron.weekly is installing awstats for all users not just updateing the users that have installed it. This has now happened 2 weeks in a row.

#!/bin/sh
/usr/local/directadmin/plugins/awstats/update/update.sh
exit 0;

How do I fix this ????

Thanks,
Rmday
 
sullise said:
Did you run this?


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

It's the script that creates the stats...looks to me like you haven't ran the update, so the awstats.pl isn't finding any datafiles.

Read the first post in this thread.

Well I ran that too and was still no joy ...

I finally resorted to copying the complete plugin from my server that it DOES work on ... this was the only way I was able to solve this issue.

GG
 
SupermanInNY said:
Weired behvior:

AFter a successul install of version 2.1.9, the AWStats showing up in the Plugin page as installed.
I haveh the AWStats Statistics showing on the Admin page, but when clicked upon,. it shows the following message on the next page:

Warning: file_get_contents(): SAFE MODE Restriction in effect. The script whose uid is 101 is not allowed to access /etc/passwd owned by uid 0 in /usr/local/directadmin/plugins/awstats/admin/index.html on line 39 Warning: file_get_contents(/etc/passwd): failed to open stream: Invalid argument in /usr/local/directadmin/plugins/awstats/admin/index.html on line 39 Couldn't deteremine user standardly!

I tried to run the udpate, but after the update completes its run, .it shows and error.

So,.. something is wrong!
I've uninstalled,. re-installed it.. several time.. all bringing ti to the same errors.

Help?

-Alon.

Anyone?
 
troubles with awstats

Hi,

I have been using awstats for a while now and everything seems to work fine, but oddly the system does not register any traffic after 6pm. This is our peak, and I know there is traffic on the site, but awstats doesn't register it. Any ideas?

will
 
What I'm trying to figure out is how I, a customer instead of the host, can install AWstats (host understandably dumped awstats after rootkit hole, but new version should be fixed). Does anyone have some example config files that work with DA I can see?
 
AWStats appears to be written to work at a server level; the install appears to require server-level access.

It's unlikely you can install it for your site.

Jeff
 
jlasman said:
AWStats appears to be written to work at a server level; the install appears to require server-level access.

It's unlikely you can install it for your site.

Jeff

Not true. I've had it installed on sites before without root. Runs out of cgi-bin.
 
YourTechSupport said:
What I'm trying to figure out is how I, a customer instead of the host, can install AWstats (host understandably dumped awstats after rootkit hole, but new version should be fixed). Does anyone have some example config files that work with DA I can see?

The problem was with AWStats ability to do realtime updates from the web interface. IF that's disabled, it's not a problem.
 
sullise said:
Not true. I've had it installed on sites before without root. Runs out of cgi-bin.
Thanks for the clarification. Does DA offer access to the log files AWStats needs?

Jeff
 
SupermanInNY said:
Weired behvior:

AFter a successul install of version 2.1.9, the AWStats showing up in the Plugin page as installed.
I haveh the AWStats Statistics showing on the Admin page, but when clicked upon,. it shows the following message on the next page:

Warning: file_get_contents(): SAFE MODE Restriction in effect. The script whose uid is 101 is not allowed to access /etc/passwd owned by uid 0 in /usr/local/directadmin/plugins/awstats/admin/index.html on line 39 Warning: file_get_contents(/etc/passwd): failed to open stream: Invalid argument in /usr/local/directadmin/plugins/awstats/admin/index.html on line 39 Couldn't deteremine user standardly!

I tried to run the udpate, but after the update completes its run, .it shows and error.

So,.. something is wrong!
I've uninstalled,. re-installed it.. several time.. all bringing ti to the same errors.

Help?

-Alon.

Third time a charm?
Can anyone suggest a solution to this problem?

Thanks,

-Alon.
 
SupermanInNY
Try to change the first line in .html/.php files (inside plugin directory) from
#!/usr/local/bin/php -c /usr/local/lib/php.ini
to
#!/usr/local/bin/php -n
 
for people suffering with error 500s because of group ownership set to apache.

this solved it for me.

the error occurs when the default public_html permissions are user:apache if the defualt is user:user then this problem didnt occur.

edit awstatsinstall.php

line 523 2 lines below Setting Directory Permissions

change
chgrp($location,$domainToProcess['user']);
to
chgrp($location,$_SERVER['USER']);

and line 539 to
chgrp ("$location/awstats.pl",$_SERVER['USER']);
 
Why doesnt the awstats auto-update? When i always logon it has 'update now' and all stats on 0!
 
Sometime ago there was an issue with Direct Admin task queues. It was purging all apache logs around 00:00 hours.

Due to this I had to do some tricks to generate my stats minutes before the task
queue executed.

Now I am installing a new DA server with Awstats plugin (of course) and just wanted to know if that issue persists.
 
Moving awstats data to a different server

I have to move a site to a different server.
How can I move the awstats information
that it needs to make the charts?
What path should I look for?
 
Re: Moving awstats data to a different server

albatroz said:
I have to move a site to a different server.
How can I move the awstats information
that it needs to make the charts?
What path should I look for?

Check out your /etc/awstats dir.
Everything needed to generate stats should be there (I think).
 
Chrysalis said:
for people suffering with error 500s because of group ownership set to apache.

this solved it for me.

the error occurs when the default public_html permissions are user:apache if the defualt is user:user then this problem didnt occur.

edit awstatsinstall.php

line 523 2 lines below Setting Directory Permissions

change
chgrp($location,$domainToProcess['user']);
to
chgrp($location,$_SERVER['USER']);

and line 539 to
chgrp ("$location/awstats.pl",$_SERVER['USER']);

Still getting error 500 after that. Installed latest version of plugin and updated to 6.5 all installed no error message but still get a forbidden 500. Any ideas on anything else i could look at to diagnose the problem?
http://www.diydoctor.org.uk/awstats/
Also tried the awstatsinstall.php -aq? to output a log to which i get zilch nothing comes up just straight to the next line. Gone through my logs in DA with no reference to a fault or problem.
 
Last edited:
Your script does not work with PHP safe_mode master_value on, because it can not read /etc/passwd. Are you planning to solve this issue?
 
Back
Top