AwStats plugin for DA [Still in BETA]

[root@saturn cgi-bin]# sed
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

:confused:
 
install.sh has been run:

Plugin Installed! Downloading latest version
Extracting
awstats-6.4/ awstats-6.4/docs/ awstats-6.4/docs/awstats.pdf Extracted.. now Updating
Removing all temp. files
Done.. updated to awstats-6.4

Running the update script to replace current awstats binaries
Done running script.. Please verify by checking the version numbers on the bottom of the generated pages!

[root@saturn cgi-bin]# ls -lh
total 92K
-r-xr-xr-x 1 diradmin diradmin 5.3K Aug 18 17:18 awredir.pl
-rwxr-xr-x 1 diradmin diradmin 53K Aug 18 17:18 awstats.none.conf
-rwxrwxr-x 1 diradmin diradmin 0 Aug 19 08:51 awstats.pl
-rwxr-xr-x 1 diradmin diradmin 5.1K Aug 18 17:18 awstats_updateall.pl
drwxr-xr-x 9 diradmin diradmin 4.0K Aug 19 05:47 icon
drwxr-xr-x 5 diradmin diradmin 4.0K Aug 19 05:49 lang
drwxr-xr-x 2 diradmin diradmin 4.0K Aug 19 05:49 lib
drwxr-xr-x 3 diradmin diradmin 4.0K Aug 19 05:49 plugins
[root@saturn cgi-bin]#
 
2.1.4 here and error 500 on every domain.

the suexec shows the permissions match correctly.

the apache log for the domain says Premature end of script headers: for awstats.pl
 
(idk if I should have) but I overwrote the entire cgi-bin directory with the latest awstats files, and it's working fine. :p
 
I have noticed 4 dirs dont get updated, dated july 30.

drwxr-xr-x 6 diradmin diradmin 512 Jul 30 03:32 .
drwxr-xr-x 3 diradmin diradmin 512 Jul 30 03:22 ..
-rw-r--r-- 1 diradmin diradmin 69 Aug 19 15:40 .htaccess
-r-xr-xr-x 1 diradmin diradmin 5407 Aug 19 15:40 awredir.pl
-rwxr-xr-x 1 diradmin diradmin 54171 Aug 19 15:40 awstats.none.conf
-rwxrwxr-x 1 diradmin diradmin 0 Aug 19 15:40 awstats.pl
-rwxr-xr-x 1 diradmin diradmin 5203 Aug 19 15:40 awstats_updateall.pl
drwxr-xr-x 9 diradmin diradmin 512 Jul 30 03:22 icon
drwxr-xr-x 5 diradmin diradmin 1536 Jul 30 03:22 lang
drwxr-xr-x 2 diradmin diradmin 512 Jul 30 03:22 lib
drwxr-xr-x 3 diradmin diradmin 512 Jul 30 03:22 plugins
 
each awstats.pl in the /home/public_html/awstats dirs is 0 bytes.


however the one in /usr/local/directadmin/awstats/hooks/cgi-bin looks fine so I need to be able to copy it on mass to all the dirs if someone can be kind enough to produce a script thanks.
 
Solution for others who got same problem.

The file /usr/local/directadmin/plugins/awstats/hooks/awstatsinstall.php wasnt running due to an error on line 4 when I executed in the shell I got this.

PHP Notice: Use of undefined constant E_NONE - assumed 'E_NONE' in /usr/local/directadmin/plugins/awstats/hooks/awstatsinstall.php on line 4

Notice: Use of undefined constant E_NONE - assumed 'E_NONE' in /usr/local/directadmin/plugins/awstats/hooks/awstatsinstall.php on line 4

So I changed that line to E_ALL and the error went away and it works copying the awstats.pl over.
 
on another server the fix didnt work and the awstats.pl is 0 bytes /var/log/php.log shows this.

[19-Aug-2005 16:58:24] PHP Notice: Undefined index: i in /usr/local/directadmin/plugins/awstats/hooks/awstatsinstall.php on line 356
[19-Aug-2005 16:58:24] PHP Notice: Undefined index: i in /usr/local/directadmin/plugins/awstats/hooks/awstatsinstall.php on line 357
[19-Aug-2005 16:58:29] PHP Notice: Undefined index: it in /usr/local/directadmin/plugins/awstats/hooks/awstatsinstall.php on line 356
[19-Aug-2005 16:58:29] PHP Notice: Undefined index: it in /usr/local/directadmin/plugins/awstats/hooks/awstatsinstall.php on line 357

--edit--

to stop all these extra posts.

The above I think is unrelated, the second server had 0 byte awstats.pl in the plugin dir itself so I had to manually untar the plugin tarball, this problem probably also occured on the 1st server.

I dont remember having this problem in 1.2.2 so something has changed in the installer for 1.2.4 that seems to stop it installing on my servers :(
 
Last edited:
Chrysalis said:
on another server the fix didnt work and the awstats.pl is 0 bytes /var/log/php.log shows this.

[19-Aug-2005 16:58:24] PHP Notice: Undefined index: i in /usr/local/directadmin/plugins/awstats/hooks/awstatsinstall.php on line 356
[19-Aug-2005 16:58:24] PHP Notice: Undefined index: i in /usr/local/directadmin/plugins/awstats/hooks/awstatsinstall.php on line 357
[19-Aug-2005 16:58:29] PHP Notice: Undefined index: it in /usr/local/directadmin/plugins/awstats/hooks/awstatsinstall.php on line 356
[19-Aug-2005 16:58:29] PHP Notice: Undefined index: it in /usr/local/directadmin/plugins/awstats/hooks/awstatsinstall.php on line 357

Just replace all the cgi-bin files with the proper awstats ones. I did and haven't noticed any problems.
 
yes it seems (1) need to reextract cgi-bin to get the master awstats.pl then (2) fix the awstatsinstall.php to allow it to copy ok
 
2.1.5

2.1.5

* Fixed patching mechanism. Used php script to do a replace instead of exporting output of sed into new file (if something went wrong, file was zero)

* E_NONE to E_ERROR (Strange.. probably a PHP4/5 issue :?)
 
Last edited:
Updated to latest version

I tried to update to the latest version and now NONE of the sites work.

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

All the awstats.pl files are 0K so i copied the file
from:
/usr/local/directadmin/plugins/awstats/hooks/awstats.pl

to: /usr/home/admin/domains/mysite.com/cgi-bin/awstats.pl

I can't seam to find any error log showin what the 500 error is.

I treid to run the awstats.pl via the command line and it did not return any errors.

I'm not sure where to begin???
 
Re: Updated to latest version

nhwebgroup said:
I tried to update to the latest version and now NONE of the sites work.

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

All the awstats.pl files are 0K so i copied the file
from:
/usr/local/directadmin/plugins/awstats/hooks/awstats.pl

to: /usr/home/admin/domains/mysite.com/cgi-bin/awstats.pl

I can't seam to find any error log showin what the 500 error is.

I treid to run the awstats.pl via the command line and it did not return any errors.

I'm not sure where to begin???

Again update! to the latest should fix it!
 
Delete and do an install!

I've just updated it again. To implement the E_NONE/E_ERROR and Patching issue!

Plugin version = 2.1.5!
 
Deleted then tried to install:

Details

awstats successfully downloaded
plugin.tar.gz extracted
install.sh has been run:

Plugin Installed! Downloading latest version
Extracting
Extracted.. now Updating
Warning: fopen(wwwroot/cgi-bin/awstats.pl): failed to open stream: No such file or directory in /usr/local/directadmin/plugins/awstats/update/patch.php on line 3
ERROR can't open awstats.pl
Removing all temp. files
Done.. updated to

Running the update script to replace current awstats binaries
Done running script.. Please verify by checking the version numbers on the bottom of the generated pages!
 
Trying 2.1.5:
awstats successfully downloaded
plugin.tar.gz extracted
install.sh has been run:

Plugin Installed! Downloading latest version
Extracting
Extracted.. now Updating
Warning: fopen(wwwroot/cgi-bin/awstats.pl): failed to open stream: No such file or directory in /usr/local/directadmin/plugins/awstats/update/patch.php on line 3
ERROR can't open awstats.pl
Removing all temp. files
Done.. updated to

Running the update script to replace current awstats binaries
Done running script.. Please verify by checking the version numbers on the bottom of the generated pages!

Fixed by running /usr/local/directadmin/plugins/update/update.sh
 
Last edited:
Back
Top