AwStats plugin for DA [Still in BETA]

That error says it's not finding the config file, not the stats.

See if "awstats.cservers.eu.conf" is in /etc/awstats

Sean
 
is it now compatible with freebsd out the box? the previous version needed a couple of edits to install properly due to incorrect paths.
 
All kinds of problems with this on Freebsd.

la1006# /usr/local/directadmin/plugins/awstats/update/update.sh
Checking for latest version<BR>
...
Updating to 6.6<BR>
Downloading 6.6<BR>
--03:33:52-- http://awstats.sourceforge.net/files/awstats-6.6.tar.gz
=> `/usr/local/directadmin/plugins/awstats/update/awstats.tgz'
Resolving awstats.sourceforge.net... 66.35.250.209
Connecting to awstats.sourceforge.net|66.35.250.209|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,079,064 (1.0M) [application/x-tar]

100%[================================================================================>] 1,079,064 813.80K/s

03:33:53 (810.51 KB/s) - `/usr/local/directadmin/plugins/awstats/update/awstats.tgz' saved [1079064/1079064]

Extracting<BR>
/usr/local/directadmin/plugins/awstats/update/update.sh: /bin/tar: not found
Extracted.. now Updating<BR>
Awstats extracted in /usr/local/directadmin/plugins/awstats/update/awstats-6.6<BR>
cd: can't cd to /usr/local/directadmin/plugins/awstats/update/awstats-6.6
Copying awstas /usr/local/directadmin/plugins/awstats/update/awstats-6.6/wwwroot/cgi-bin/awstats.pl to basedir
cp: /usr/local/directadmin/plugins/awstats/update/awstats-6.6/wwwroot/cgi-bin/awstats.pl: No such file or directory

Warning: fopen(/usr/local/directadmin/plugins/awstats/hooks/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
<BR>ERROR can't open awstats.pl<BR>Patched..<BR>
cp: /usr/local/directadmin/plugins/awstats/update/awstats-6.6/wwwroot/cgi-bin/lib: No such file or directory
cp: /usr/local/directadmin/plugins/awstats/update/awstats-6.6/wwwroot/cgi-bin/lang: No such file or directory
cp: /usr/local/directadmin/plugins/awstats/update/awstats-6.6/wwwroot/icon: No such file or directory
cp: /usr/local/directadmin/plugins/awstats/update/awstats-6.6/wwwroot/cgi-bin/plugins: No such file or directory
Removing all temp. files<BR>
Updating all user files..<BR>

Done.. updated to 6.6<BR>

Now what?

And in the users webspace.

Checking if there is already something installed..
Creating AwStats dir on domain
Setting Directory PermissionsChecking if awstats files are availableError linking lib dir /home/listweb/domains/listwebhost.com/public_html/awstats/lib from /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/libError linking icon dir /home/listweb/domains/listwebhost.com/public_html/awstats/icon from /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/iconError linking lang dir /home/listweb/domains/listwebhost.com/public_html/awstats/lang from /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/langError linking plugin dir /home/listweb/domains/listwebhost.com/public_html/awstats/plugins from /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/plugins
Checking for AwStats itself
Going to install the awstats.pl
Warning: copy(/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl): failed to open stream: No such file or directory in /usr/local/directadmin/plugins/awstats/user/index.html on line 76 Error linking awstats.pl /home/listweb/domains/listwebhost.com/public_html/awstats/awstats.pl from /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl
(Re-)Activating CGI for dir
Doing an extra permission setting through shell..+(Re-)Setting permissions
Warning: chmod(): No such file or directory in /usr/local/directadmin/plugins/awstats/user/index.html on line 100 Warning: chown(): No such file or directory in /usr/local/directadmin/plugins/awstats/user/index.html on line 101 Doing an extra permission setting through shell..Done
Now (re-)creating your configuration file.

If i have time, ill modify the installer so that it works on Freebsd. ;)
 
Last edited:
pucky said:
All kinds of problems with this on Freebsd.

la1006# /usr/local/directadmin/plugins/awstats/update/update.sh
Checking for latest version<BR>
...
Updating to 6.6<BR>
Downloading 6.6<BR>
--03:33:52-- http://awstats.sourceforge.net/files/awstats-6.6.tar.gz
=> `/usr/local/directadmin/plugins/awstats/update/awstats.tgz'
Resolving awstats.sourceforge.net... 66.35.250.209
Connecting to awstats.sourceforge.net|66.35.250.209|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,079,064 (1.0M) [application/x-tar]

100%[================================================================================>] 1,079,064 813.80K/s

03:33:53 (810.51 KB/s) - `/usr/local/directadmin/plugins/awstats/update/awstats.tgz' saved [1079064/1079064]

Extracting<BR>
/usr/local/directadmin/plugins/awstats/update/update.sh: /bin/tar: not found
Extracted.. now Updating<BR>
Awstats extracted in /usr/local/directadmin/plugins/awstats/update/awstats-6.6<BR>
cd: can't cd to /usr/local/directadmin/plugins/awstats/update/awstats-6.6
Copying awstas /usr/local/directadmin/plugins/awstats/update/awstats-6.6/wwwroot/cgi-bin/awstats.pl to basedir
cp: /usr/local/directadmin/plugins/awstats/update/awstats-6.6/wwwroot/cgi-bin/awstats.pl: No such file or directory

Warning: fopen(/usr/local/directadmin/plugins/awstats/hooks/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
<BR>ERROR can't open awstats.pl<BR>Patched..<BR>
cp: /usr/local/directadmin/plugins/awstats/update/awstats-6.6/wwwroot/cgi-bin/lib: No such file or directory
cp: /usr/local/directadmin/plugins/awstats/update/awstats-6.6/wwwroot/cgi-bin/lang: No such file or directory
cp: /usr/local/directadmin/plugins/awstats/update/awstats-6.6/wwwroot/icon: No such file or directory
cp: /usr/local/directadmin/plugins/awstats/update/awstats-6.6/wwwroot/cgi-bin/plugins: No such file or directory
Removing all temp. files<BR>
Updating all user files..<BR>

Done.. updated to 6.6<BR>

Now what?

And in the users webspace.

Checking if there is already something installed..
Creating AwStats dir on domain
Setting Directory PermissionsChecking if awstats files are availableError linking lib dir /home/listweb/domains/listwebhost.com/public_html/awstats/lib from /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/libError linking icon dir /home/listweb/domains/listwebhost.com/public_html/awstats/icon from /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/iconError linking lang dir /home/listweb/domains/listwebhost.com/public_html/awstats/lang from /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/langError linking plugin dir /home/listweb/domains/listwebhost.com/public_html/awstats/plugins from /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/plugins
Checking for AwStats itself
Going to install the awstats.pl
Warning: copy(/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl): failed to open stream: No such file or directory in /usr/local/directadmin/plugins/awstats/user/index.html on line 76 Error linking awstats.pl /home/listweb/domains/listwebhost.com/public_html/awstats/awstats.pl from /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl
(Re-)Activating CGI for dir
Doing an extra permission setting through shell..+(Re-)Setting permissions
Warning: chmod(): No such file or directory in /usr/local/directadmin/plugins/awstats/user/index.html on line 100 Warning: chown(): No such file or directory in /usr/local/directadmin/plugins/awstats/user/index.html on line 101 Doing an extra permission setting through shell..Done
Now (re-)creating your configuration file.

If i have time, ill modify the installer so that it works on Freebsd. ;)

Looks like paths for DA are different on FreeBSD? When you patch the installer, send it to me and I'll add it to the current version.
 
Well your first error occurs here;

cd: can't cd to /usr/local/directadmin/plugins/awstats/update/awstats-6.6

There needs to be a check in the script to make sure that after the distro untars, that is awstats distro doesn't exist that it exits gracefully. Seems like it couldnt find tar thats why it couldnt uncompress.

Im off my feet busy and if i have some free time ill modify it and send you the update.
 
of hand path to tar needs fixing which is.

/usr/bin/tar

of course simply editing it for that would then break linux so the easiest way is to set a paths variable at the start of the script and simply using tar. Or you could use variables to check what os its running on and run command accordingly.

I think it also needed adjusting for chown chmod as well but cant remember.
 
Checking for the OS is what should be in the script using if then else. Thats the easiest way i see it. Also, make sure chown is using the colon instead of the period for Freebsd.

eg

chown -R directadmin:wheel <directory>

instead of

chown -R directadmin.wheel <directory>

That way it will work on both OS's instead of just on Redhat.
 
Hi!

i install plugin awstats 2.1.9 and uninstall and reinstall plugin 3.0. After i uninstall 3.0 and reinstall 2.1.9 and when click on UPDATE stats on web page, i have this error for all user:

--------------
Error: Couldn't open server log file "/var/log/httpd/domains/domain.com.log" : Permission denied

Setup ('/etc/awstats/awstats.domain.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
--------------

domain.com.log : have root:root permission by the system

Why this error?

and if /usr/local/directadmin/plugins/awstats/hooks/alldomains.php

i have this error:

--------------
Installed awstats.
(Re-)Activating CGI for dir
Doing an extra permission setting through shell..chmod: invalid option -- L
Try `chmod --help' for more information.

Warning: symlink(): File exists in /usr/local/directadmin/plugins/awstats/hooks/alldomains.php on line 58
(Re-)Setting permissions
chmod: invalid option -- L
Try `chmod --help' for more information.
Now (re-)creating your configuration file.
--------------

Thanks!
 
Last edited:
No clue...would have to look at what you did.

The ONLY changes in the install process was what was listed above...basically where the clients stats data lives and the password protection of their /awstats files.

Uninstall again, then delete all the *.conf files from the /etc/awstats directory and reinstall. (DON'T delete any of the *.txt files).
 
Hi!

i uninstall et delete plugin. After delete all *.conf in /etc/awstats/

i reinstall plugin 2.1.9 and update.sh

but i have same error when i click on web page for live update my stats. :(

--------------
Error: Couldn't open server log file "/var/log/httpd/domains/domain.com.log" : Permission denied

Setup ('/etc/awstats/awstats.domain.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
--------------
 
Last edited:
First of all, live update from within the webbrowser should not even be possible..that's one of the changes..it's automatically disabled.
 
Read back in the thread, you'll see all the fixes

...I'm not supporting 2.1.9, only 3.0.0. Just don't have the time. You just have to edit the awstats.none.conf file and turn off update from web, and make all the other manual changes.

I think I posted my 2.1.9 procedures in an earlier posta bout 4-5 pages back.
 
Dangerous, but you're call. That function is one of the most explotiable features of AWStats. That's why I have it locked down.

While the developers CLAIM that they fixed the problem, I'm one to err on the side of caution in cases like this.

Install 3.0.0. Go to the awstats.none.conf file and change

PHP:
- nano -w /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.none.conf
- Cntl-\
- change: AllowToUpdateStatsFromBrowser=0
to:        AllowToUpdateStatsFromBrowser=1
- Cntl-x to save

Do same for any user conf files in /etc/awstats too.
 
hi all,

I've just upgrade the DA plugin 2.1.9 with the 3.0
I moved the log file in each user's stats directory.
My installation is OK

But, when I launch my webpage domain.tld/awstats, I've this message on top of my pages :

WARNING: LastLine parameter in history file is '20061207003308' so in future. May be you need to correct manually the line LastLine in some awstats*.serton.net.conf files.


Have you an idea in what's happened ?

My server run with DA v1.28.1 and PHP5.2.0 and Apache 1.3.37
 
Last edited:
Fresh Installation

Hi,

I don't want to mess with things and I'd love to install awstats on a Fedora Core 5 intallation with DA 1.28.

Do I just have to install the plugin (v3.0.0 - http://www.capitalwebhost.net/daplugins/awstats.tar.gz) within the DA Control Panel to install awstats?

Is there anything I should be aware of before installing? Do I have to check things before proceding...

If something goes wrong, do I just have to uninstall the plugin from the Control Panel to go back to the state before?

Any help is welcome,

TIA,
Fossie
 
Back
Top