AwStats plugin for DA [Still in BETA]

If the logs aren't rotated they should update from the beginning of the log.

You should check that you've chosen the correct year :) As you can select the year from the statistics page ;)

I would recommend to setup the cron as described in the first post of this thread. (On size or every day)
 
It hasn't been rotated yet but still I get stats only from today :S
I don't know why.
For me it isn't a big deal. I just wanted to mention you that little issue :P

Anyway I'm gonna add the cron :D
 
Hi,

Here is my problem:

server# /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now
Error: Can't find AWStats program ('awstats.pl').
Use -awstatsprog option to solve this.

If this does not work, how do I add automatic updates for awstats [ let's say every 5 hours ] to cron?


The weird thing is that once I am in /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/ I can execute "./awstats_updateall.pl now" without any problems and it works.

Thanks for help.
 
As described clearly in first post of this thread"

For use in a Cron update: /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl

Good luck :D
 
fusionictnl said:
OxnardMontalvo

You could edit the post_create.sh or something on domain creation to add a line to permissions.txt when a domain is created.

Or use the script that creates awstats on every domain ;) (doesn't add the user in permissions.txt)

Hi.

Ok, I looked over alldomains.php and while it will work it threw a couple of errors. (chmod on my CentOS box does not have a -L flag) Anyhow, one thing led to another and I ended up re-writing it. The main logic is yours, I just added some options to make it easier for me to use. It's pretty well documented but not well tested. It works fine on my box but I don't know about any others.

Anyhow, consider this highly unstable ALPHA code (it's a 1.0 people...c'mon!) but it's my small contribution.

Of course, obligatory props to fusionictnl for the plugin and alldomains.php.

=C=
 

Attachments

OxnardMontalvo said:
of course as SOON as I uploaded I found the critical bug. :) This is 1.1

=C=

I do have centos, so I'll test it out ;) What the problem is and if it's OK with you I'll implement te modified version of yours ?
 
fusionictnl said:
I do have centos, so I'll test it out ;) What the problem is and if it's OK with you I'll implement te modified version of yours ?

Have at it. Send me any fixes. There are still 2-3 things I've got in the pipeline that I want to make it do. As I get them implemented I'll post it here.

=C=
 
This is done automaticaly during nightly tally when a log file is bigger as the specified size in DA CP.

Nothing much to do about it.. :s
 
awstatsInstaller.php - v1.2

This should be the final version unless there are bugs. There's only so much you can do with this. :)

This version will scan domains that have awstats installed and repair the installation if necessary. Also added a -h help feature and in the comments at the top there are examples of how to call it.

Enjoy (or ignore, what do I care, it's working for me!) :)

=C=

p.s. In case it's not clear, this REQUIRES the plugin be installed. It does not replace the plugin.
 

Attachments

I'm sorry but what does awstatsInstaller.php - v1.2 actually do?

scans for pre-existing installs and repairs them and what else? Also what exactly is it repairing?
 
Update 2.0.5

*- Added awstatsinstall.php to the hooks dir of the plugin. Thx to Cal Evans (Can be used in case of problems or to install on domains)
 
rldev said:
I'm sorry but what does awstatsInstaller.php - v1.2 actually do?

scans for pre-existing installs and repairs them and what else? Also what exactly is it repairing?

The file has documentation inside :)
 
It replaces hooks/alldomains.php.

I wrote it so that I could put something in my:

/usr/local/directadmin/scripts/custom/domain_create_post.sh file to automatically install awstats on any domain added to the system. Ok, so I got carried away and added a few extra features.

It is in no way necessary to use the plugin, it just makes my life easier.

=C=
 
Back
Top