AWStats Plugin for DA [version 3.0+]

1) Why was there no /home/user/domains/domain.tld/stats folder? That shoud be created when the acct is defined

2) No stats becaue you either have to wait till the update cron runs or run it manually...loook back in thread for more details on that.
 
Oh by the way, i forgot to say that i check php.ini, and it seems everything is in order.

I'll check the manual update, let's say if i can get anything about it.

Thanks.
 
I've completed the steps for manual updates, and things have moved a step further. However, i've a new issue.
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).

I've changed "/var/log/httpd/domains/domain.com.log" permission to 0755.

What else am i supposed to test?

And yes, i've installed and waited for quite sometime but yet there's no updates. I suppose it's either the same error that happened(when i done it manually), or there's some other problem with my installation such that after few hours, there's no updates.

Please help, thanks!
 
Last edited:
I ran this command manually, and all results are being properly populated.

My concern will be future updates, seems like cronjob isn't helping.
Code:
/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl
Can you advise me, am i reading correctly that '10 0 * * *' means it'll update only once everyday?
 
am i reading correctly that '10 0 * * *' means it'll update only once everyday?
Yes

I have mine updating every 59 mins by adding to /etc/crontab this:
*/59 * * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl
 
I ran this command manually, and all results are being properly populated.

My concern will be future updates, seems like cronjob isn't helping.
Code:
/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl
Can you advise me, am i reading correctly that '10 0 * * *' means it'll update only once everyday?


If the command is working from the CLI manually, then the issue is not with the plugin, but with Crontab. Double check your cron entries and restart crontab.

I also do NOT recommend running AWStats every hour if you have a server with a lot of sites and heavy traffic.
 
When I try to add password to awstats through DirectAdmin, I get error:
Code:
Warning: copy(/home/n9ru/domains/n9.ru/public_html/awstats/.htaccess): failed to open stream: Permission denied in /usr/local/directadmin/plugins/awstats/user/options.php on line 34 Warning: fopen(/home/n9ru/domains/n9.ru/public_html/awstats/.htaccess): failed to open stream: Permission denied in /usr/local/directadmin/plugins/awstats/user/options.php on line 36 Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/directadmin/plugins/awstats/user/options.php on line 37 Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/directadmin/plugins/awstats/user/options.php on line 38 Warning: fopen(/home/n9ru/domains/n9.ru/public_html/awstats/.htpasswd): failed to open stream: Permission denied in /usr/local/directadmin/plugins/awstats/user/options.php on line 40 Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/directadmin/plugins/awstats/user/options.php on line 41 Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/directadmin/plugins/awstats/user/options.php on line 42 Password protected!

My system: FreeBSD 6.2-STABLE #0: Tue Apr 17 19:35:33 MSD 2007 i386 Apache/2.0.59 (Unix) PHP/5.2.1 FrontPage/5.0.2.2635 mod_ssl/2.0.59 OpenSSL/0.9.7e-p1 mod_perl/2.0.3 Perl/v5.8.6
 
Far as I know, the plugin was never written for FreeBSD...so you're pretty much on your own. But from casual observation, it's simply a permissions issue with .fopen.
 
Far as I know, the plugin was never written for FreeBSD...so you're pretty much on your own. But from casual observation, it's simply a permissions issue with .fopen.

I've do chmod 777 /home/n9ru/domains/n9.ru/public_html/awstats/.htaccess but it didn't help.
 
Using freeBSD here too. Can' t seem to install this plugin ?
Maybe write a new tutorial and rewrite code for freeBSD users ?

Greetings,

Jeroen
 
Using freeBSD here too. Can' t seem to install this plugin ?
Maybe write a new tutorial and rewrite code for freeBSD users ?

Greetings,

Jeroen

Nothing new to write. Plugin was not designed to use on FreeBSD as far as I know..and since I've never used FreeBSD, not have the time or ambition to rewrite this since it works fine for my needs. ;)

Feel free to grab the code and have at it. :D
 
Same Error

I am getting the same errors and i checked the files and they are chmod'd right and the right owner are assigned to the files



any ideas?

Hi!

i have a error when i look awstats, i do:

1. Uninstall 2.1.9 plugin and remove
2. Delete all .conf in /etc/awstats
3. Install 3.0.1 plugin
4. run /usr/local/directadmin/plugins/awstats/update/update.sh
5. Check All Domain in Awstats Admin
6. Recreate all .conf with: /usr/local/directadmin/plugins/awstats/hooks/alldomains.php
7. /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl

and i have this error:
------------------------
Error: AWStats database directory defined in config file by 'DirData' parameter (/domains/domain123.net/stats/) does not exist or is not writable.

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

Thanks!
 
Hi,

I cant see the awstats, i enter on domain.com/awstats, login with the password and i see this error:
-----

Not Found
The requested URL /awstats/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

-----

The folder public_html/awstats is created, and inside have this files:
-----
[root@server awstats]# ls
awstats.pl icon lang lib plugins
-----

What is wrong??

Thans
 
hecking if there is already something installed..
AwStats Directory already exists on domain
Checking if awstats files are available....
Checking for AwStats itself
Awstats already exists.
So I will delete it...Deleted!
Going to install the awstats.pl
+
(Re-)Activating CGI for dir
Ok .htaccess already exists let's delete it..Deleted!
Doing an extra permission setting through shell..+(Re-)Setting permissions
Doing an extra permission setting through shell..Done
Now (re-)creating your configuration file.
Warning: fopen(/home/compuworks/domains/computer-works.nl/public_html/awstats/.htpasswd): failed to open stream: Permission denied in /usr/local/directadmin/plugins/awstats/user/index.html on line 140 Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/directadmin/plugins/awstats/user/index.html on line 141 Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/directadmin/plugins/awstats/user/index.html on line 142 Warning: chown(): Operation not permitted in /usr/local/directadmin/plugins/awstats/user/index.html on line 144

I got this problem, i am owner of the server and if i check this:
/home/compuworks/domains/computer-works.nl/public_html/awstats/.htpasswd

then i see that the ownership is not right, it is set to root, admin.. and if i remove the .htpasswd file and i run install again the problem is gone.. but if i have to do this for all my 180users i will go nuts, how can i do this for all users? any have an idea?

Thanks for ready and please help me out here.
 
First off, great plugin.

When trying to view AWSTATS for a domain, I get the following error...

Error: AWStats database directory defined in config file by 'DirData' parameter (/home/adamrose/domains/roseslawncare.com/awstats/) does not exist or is not writable.

Setup ('/etc/awstats/awstats.roseslawncare.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
The reason for this error... the /awstats directory WAS NOT created in each of the domain directories. If I manually create the directory in the root of the domain directory, and chown it to the username, AWSTATS works fine.

I did run the alldomains.php command, and AWSTATS is activated for the domain.

Any clues as to why the /awstats directory was not created for all of the domains? Is there a way to create all of these directories without having to do it manually?

Thanks in advance.
 
Well, Mr. X, if you want help, you're gonna have to give up more then that..that's like going to the mechanic and saying, I have a Ford and it's nt working. LOL.

As for the other problems above..read back in the thread a ways, common problems that have been addressed.

Like I said earlier...it's opensource..learn PHP, Linux and shell scripting and have at it. I am no longer officially supporting this as I simply do not have time. I have never had any of the problems everyone else seems to have, so can't help what I can't reproduce.
 
Back
Top