AwStats plugin for DA [Still in BETA]

./awstatsinstall.php -f -a
PHP Notice: Use of undefined constant E_NONE - assumed 'E_NONE' in /usr/local/directadmin/plugins/awstats/hooks/awstatsinstall.php on line 3
 
Notice doesn't abort script so it went OK ;)

I am working on the upgrade BUT awstats has done some major code reorganisation so I have to walk through it step by step and implement my changes into it.
 
Update 2.1

*- Implemented Awstats 6.3 (Hard work :D)
*- Fixed the install.sh to run additional script to update the current awstats.pl's on your server with the new ones
*- I think most people will have less problems with the permissions.txt file now. (Made some tiny fixes )

I think this version ROCKS :p and probably won't give to much problems installing.

Good luck with it Folks and I'm sure you'll get everything working :)

Ohww and some people PM me about a paypal donation account.. for them I've added it to the first post!
 
Last edited:
Thanks!

When I update the plugin, do I have to run some script to get the 6.3 version in all directory's? Because all the stats dirs contain a awstats.pl.

Keep up the good work!
 
Version 2.1 Plugins

The version 2.1 have a problem... don't have pictures...
 
I've regzipped tarred the whole bunch (just in case).

Try reinstalling the whole thing again and redo your steps :)

FYI: The icon is a symbolic link to /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/icon

There should be more symlinks..
 
Last edited:
Wich update script ?? There isn't an update script :)

Run the install for the specific domain through the panel (User-Level). If you only give permissions and run the update script I think you ran. Then it will only create 2 files (awstats.pl,.htaccess) as the symlinks doesn't have to be updated ever.
 
Thanks, that solution worked fine, but is there a way to do all domains at once?

Btw ... the update script I meant is:
usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl

It says 'awstats_updateall.pl', so I call it the update script.
 
LOL. That's the script to update the statistics :P

There are 2 files:

awstatsinstall.php (use -h to see the info)
and another .php file that install roughly on all domains (forgot the name)
 
Btw ... the update script I meant is:
usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/

That's the update script for CRON (Read first message in this topic)

Ok it ain't that funny, but I always see people mixing up the scripts.

You don't have to do anything yourself.

The plugin is build in 2 halfs.

- Admin (Set the domain users that can install awstats)
- User (Install awstats and set some options)

The awstatsinstall.php in the hooks dir is to install the awstats on the domains by console. (Still just use the script and you don't have to do anything)

Just read the first post in this topic
 
Couple of notes re the new version:

1. Upgrading to it clears all .htaccess password files, by the look of it.

2. The -Year- option is semi-enabled - i.e. enabled for the command-line version, but not the dynamic one. AllowFullYearView is set by default to 2 - personally, I changed it to 1 to disallow it and not show it. It should really be on either 1 or 3, depending on whether you want people to be able to calculate year-view stats (CPU-intensive).
 
Chrysalis said:
./awstatsinstall.php -f -a
PHP Notice: Use of undefined constant E_NONE - assumed 'E_NONE' in /usr/local/directadmin/plugins/awstats/hooks/awstatsinstall.php on line 3

I've seen this a couple of times and do not understand it. E_NONE is a valid PHP constant. However, you can change it to 0 and everything will work just fine.

=C=
 
For making things a little bit clear :)

The awstatsinstall.php isn't developed by me :p It's just to help you out :)

The awstatsinstall.php doesn't create symlinks with the options "-f -a", why I don't know and I will look into it :s
 
fusionictnl said:
For making things a little bit clear :)

The awstatsinstall.php isn't developed by me :p It's just to help you out :)

The awstatsinstall.php doesn't create symlinks with the options "-f -a", why I don't know and I will look into it :s

Heh, yea, that's my bastard child. I'll work on it this weekend. Expect a release by Monday.

=C=
 
Back
Top