AwStats plugin for DA [Still in BETA]

True, DA isn't apache and can't run CGIs.

But...

DA serves only the control panel, so it has no need to run CGIs.

So I'm not sure what you mean.

AW Stats is NOT part of DirectAdmin; it doesn't use DirectAdmin to serve pages.

Jeff
 
Short Tags

Please don't use PHP Short Tags, I have them disabled on my server I override them on a per domain basis, but am not sure if / how to override the short tag setting for directadmin Http://ip:2222/ that is.

E_ALL is also on - Please code correctly - or send me a copy of the latest source and i'll help.

Errors so far:
/awstats
Notice: Undefined variable: config in /usr/local/directadmin/plugins/awstats/user/index.html on line 26

Notice: Undefined variable: commit in /usr/local/directadmin/plugins/awstats/admin/index.html on line 21 Notice: Undefined offset: 6 in /usr/local/directadmin/plugins/awstats/admin/index.html on line 35 Notice: Undefined offset: 5 in /usr/local/directadmin/plugins/awstats/admin/index.html on line 35 Notice: Undefined offset: 4 in /usr/local/directadmin/plugins/awstats/admin/index.html on line 35 Notice: Undefined offset: 6 in /usr/local/directadmin/plugins/awstats/admin/index.html on line 35
(repeats quite a bit)

Tune:
Notice: Undefined variable: awuser in /usr/local/directadmin/plugins/awstats/user/options.php on line 21
Fatal error: Call to undefined function: preg_match() in /usr/local/directadmin/plugins/awstats/user/options.php on line 63
 
Last edited:
Hi guys,

just a question, what version is awstats in that module now?

'cause i've disabled after listen about some bugs about awstats...

thanks all
 
fusionictnl said:
Well the same way :s if a user is activated then there can only be stats written for them :s

Hm.....
I run command, that your write in first message:
/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl
and program updating statistics for all domains on my server! :-(
 
Re: Short Tags

Lukian: Please feel free to do so. I ain't getting paid for it, so my coding is the way it is. You can just turn error reporting of at the first line, if it bothers you.

SeLLeRoNe Read first post in thread

RosT Remove the not used conf files in /etc/awstats if you don't want them to be updated.

When you disable a user, it doesn't remove the already created files if it was in first place an enabled user.
 
I installed AwStats 2 days ago. And activated 2-3 domaisn for using AwStats, but it update ALL DOMAINS on my server. Never activated updates too!
 
Code modifications done, I'll test it on my own server, fix any typos I made at 2am ;) and release it back for inclusion in one of the next updates.

Anyone else interested, let me know.
 
Hi!

is it possible to have the ftp and mails Stats??

That one can add it only if the user wants it !!

Or total (Global) informations on the server (for Admin or reseller control)!

Thanks!
 
Last edited:
Is it possible to password protect the /awstats directory automagicly by using the username/password verification in DA? That would be great!
 
awstats has been working perfectly for a while but now I am getting the following feedback/error for a specific domain. This domain was working fine for two months.

Running '"/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl" -update -config=pixelmercenary.com -configdir="/etc/awstats"' to update config pixelmercenary.com Update for config "/etc/awstats/awstats.pixelmercenary.com.conf"
With data in log file "/var/log/httpd/domains/pixelmercenary.com.log"...
Phase 1 : First bypass old records, searching new record... Direct access after last parsed record (after line 2931) AWStats did not find any valid log lines that match your LogFormat parameter, in the 50th first non commented lines read of your log. Your log file /var/log/httpd/domains/pixelmercenary.com.log must have a bad format or LogFormat parameter setup does not match this format. Your AWStats LogFormat parameter is: 1 This means each line in your web server log file need to have "combined log format" like this: 111.22.33.44 - - [10/Jan/2001:02:14:14 +0200] "GET / HTTP/1.1" 200 1234 "http://www.fromserver.com/from.htm" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" And this is an example of records AWStats found in your log file (the record number 50 in your log): 216.105.215.38 - - [15/Mar/2005:22:26:53 -0600] "-" 408 - "-" "-" Setup ('/etc/awstats/awstats.pixelmercenary.com.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory).

Why would this suddenly happen? Has it happened to anyone else?
 
Rlvev As the message says, the log doesn't have the correct format that is specified in the conf file. If you've changed the log format in apache, this will happen or if you've changed the logformat= line in the conf file :s

Normaly this shouldn't happen.

Vanrooij

This isn't possible as I don't use any information related to the users account. Further more I don't know if it is possible.

Drkt

FTP Stats could be done, but I don't find the usefull. Just configure it yourself for an account you wish.


All

I will not customize, add extra functionality to this product anymore. Only major security leaks will be implemented or if there's some major update to awstats that IS usefull.

This project did consume a lot of time and I think I can better set this to paid projects instead of these ;)

As this projects first intention was to prove to DA that it was POSSIBLE in an easy way to implement this in their installation. And they just aren't interested in any of this anymore. The time that it takes me to get things working the DA way, just takes a lot of time for me and DA could just easaly add this to their software.
 
I don't see why DA wouldn't pick this up at this point. Thanks for all the good work you have done.
 
Is there any way that the plugin can install awstats in each domain by using apache Alias directives, instead of modifying content in public_html.

The reason being that most of my sites are java based sites, and when a new version of the apps are deployed, the public_html folder is wiped out.

One way that I think it can work is this :

copy the awstats.pl script and place other other symlinks in in ~/domains/|DOMAIN|/awstats

Then the trick is to insert the apache directives - could these be inserted into the custom http blob (within some marker comments for ease of replacing or removing)

I'd be willing to help with this.
 


I will not customize, add extra functionality to this product anymore. Only major security leaks will be implemented or if there's some major update to awstats that IS usefull.

This project did consume a lot of time and I think I can better set this to paid projects instead of these

As this projects first intention was to prove to DA that it was POSSIBLE in an easy way to implement this in their installation. And they just aren't interested in any of this anymore. The time that it takes me to get things working the DA way, just takes a lot of time for me and DA could just easaly add this to their software.

 
Back
Top