AWStats Plugin for DA [version 3.0+]

ok i managed to fix the problem i had early but a new problem has arrised...

when viewing the stats i get:

Warning: Can't find language files for "en". English will be used.
Warning: Can't read file "status_http.pm" (status http detection will not work correctly).
Check if file is in "./lib" directory and is readable.
Warning: Can't read file "search_engines.pm" (search engines detection will not work correctly).
Check if file is in "./lib" directory and is readable.
Warning: Can't read file "domains.pm" (domains detection will not work correctly).
Check if file is in "./lib" directory and is readable.
Warning: Can't read file "operating_systems.pm" (operating systems detection will not work correctly).
Check if file is in "./lib" directory and is readable.
Warning: Can't read file "robots.pm" (robots detection will not work correctly).
Check if file is in "./lib" directory and is readable.
Warning: Can't read file "browsers.pm" (browsers detection will not work correctly).
Check if file is in "./lib" directory and is readable.
Warning: Can't read file "mime.pm" (mime detection will not work correctly).
Check if file is in "./lib" directory and is readable.

any idea where this ./lib directory is...

looked in plugins and on domain ftp not in either.

cause i know its a chmod permission thing but cant seem to find where this plugin stores the folders / files there all over the place.

if it means the main directory ./lib of the OS that has permission set to 755 so it is readable....

any ideas?
 
Last edited:
/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl && echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue

that command on the CronTab.. create the folder /awstats (install awstats) in all domains.. of all users .. even those that never installed or used the awstats... :mad:

¿ it is a way of only update the awstats of the domains/user are installed the awstats from the control panel link...? :cool:
 
Hi,
Thanks for a great plugin, Ive installed this and its working but I just have a couple of questions.

I ran the CLI command to update the stats straight away, how often are these updated if I dont do it manually?

Secondly, when i ran this, it has placed an /awstats folder in every domain on the system, even those domains I have no activated it for. Have I done something wrong?

Lastly, How to I turn off the stats for a domain? I see no option for this.

Thanks in advance for your help.
 
Thanx for the script.
For the test I put this in the crone:

5 * * * */usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl && echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue but the stats are not updating.

Only when I update awstats manualy the stats getting updated.
Any idea?
 
gosh.. i need a awstate report by e-mail!! :(

at least youve got it working...

mine works but not icons or images are displayed.

still suffering with:

Warning: Can't find language files for "en". English will be used.
Warning: Can't read file "status_http.pm" (status http detection will not work correctly).
Check if file is in "./lib" directory and is readable.
Warning: Can't read file "search_engines.pm" (search engines detection will not work correctly).
Check if file is in "./lib" directory and is readable.
Warning: Can't read file "domains.pm" (domains detection will not work correctly).
Check if file is in "./lib" directory and is readable.
Warning: Can't read file "operating_systems.pm" (operating systems detection will not work correctly).
Check if file is in "./lib" directory and is readable.
Warning: Can't read file "robots.pm" (robots detection will not work correctly).
Check if file is in "./lib" directory and is readable.
Warning: Can't read file "browsers.pm" (browsers detection will not work correctly).
Check if file is in "./lib" directory and is readable.
Warning: Can't read file "mime.pm" (mime detection will not work correctly).
Check if file is in "./lib" directory and is readable.

cant beleive their aint any official word on how to solve this yet. even my best mate google doesnt have a solution.
 
Deftone - Ive got the same problem, they aint updating automatically, just when I do it manually. Have you fixed this yet?

Im wondering if it has anything to do with turning webalizer off?

Anyone know why?
 
Awstats Ceased functionning...

Hi everyone...

Had Awstats installed for several months, and working smoothly on a debian box...

Recently, i had to make software updates under apt-get, and made a general update through this way...

Since friday, i had errors in awstats... mainly, count errors between browsers number.
Corrected the problem under browsers.pm by removing svn count...
BUT....

Stats are not more computed, all stats ceased for all account last friday...

If i activate manual update, an do an update, i get systematically this error :

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

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

What's happening with the plugin...

For information : Here is what i have for info for you :
Awstats version : Advanced Web Statistics 6.7 (build 1.892)

Thks...

Tdldp

UPDATE :
Ok, i have the stats computed every 4 hours... I have followed steps to update plugin, and all sh scripts... And last update has worked in automatic... All stats are once more automatically updated...
BUT : Manual update, still gives error

Thks for a clue on the problem
 
Last edited:
Awstats Problem

I'm getting the same permissions error on manual update. Anyone have a solution for this? I've even tried chmoding the .log file to 777, and no luck. Help! Thanks.
 
this awstats plugin wasnt working for me on my centos 5 ...

images / icons weren't showing, awstats weren't getting updated, and for directories with their own .htaccess, it wouldnt let them view the awstats page.... etc...

so i decided to uninstall this plugin but now, its been couple days, it seems webalizer is not being updated at all!

how can i make webalizer work again?
 
I've installed this plugin, and have a problem at http://obelix.it2go-obelix.net:2222/CMD_PLUGINS_ADMIN/awstats


Warning: file_get_contents(): SAFE MODE Restriction in effect. The script whose uid is 107 is not allowed to access /etc/passwd owned by uid 0 in /usr/local/directadmin/plugins/awstats/admin/index.html on line 39 Warning: file_get_contents(/etc/passwd): failed to open stream: Invalid argument in /usr/local/directadmin/plugins/awstats/admin/index.html on line 39 Couldn't determine user standardly!
 
I've installed this plugin, and have a problem at http://obelix.it2go-obelix.net:2222/CMD_PLUGINS_ADMIN/awstats


Warning: file_get_contents(): SAFE MODE Restriction in effect. The script whose uid is 107 is not allowed to access /etc/passwd owned by uid 0 in /usr/local/directadmin/plugins/awstats/admin/index.html on line 39 Warning: file_get_contents(/etc/passwd): failed to open stream: Invalid argument in /usr/local/directadmin/plugins/awstats/admin/index.html on line 39 Couldn't determine user standardly!

Error message is pretty clear...turn off safe_mode.
 
Warning: file_get_contents(): SAFE MODE Restriction in effect. The script whose uid is 106 is not allowed to access /etc/passwd owned by uid 0 in /usr/local/directadmin/plugins/awstats/admin/index.html on line 39 Warning: file_get_contents(/etc/passwd): failed to open stream: Inappropriate ioctl for device in /usr/local/directadmin/plugins/awstats/admin/index.html on line 39 Couldn't determine user standardly!
Select the users that can access the Awstats Plugin:

I have the same problem..

Recently moved to a new server. On the old one everything worked fine. Now on the new one we also upgraded apache, php & mysql tot newer version using custombuild. Safemode is off as default, so that must not be the problem altho it saying SAFE MODE restriction in effect.

I just checked and it`s off...

Anybody got an idea? Maybe suPHP or any other rights problem. I set just as a test the user to diradmin:diradmin on /etc/passwd and then its working. So its something in the rights thing.
 
I get the next error:

Code:
Error: Couldn't open config file "awstats.server02.xsxn.nl.conf" nor "awstats.conf" after searching in path "/home/advocaat44/public_html/awstats,/etc/awstats,/usr/local/etc/awstats,/etc,/etc/opt/awstats": No such file or directory

- Did you use the correct URL ?
Example: http://localhost/awstats/awstats.pl?config=mysite
Example: http://127.0.0.1/cgi-bin/awstats.pl?config=mysite
- Did you create your config file 'awstats.server02.xsxn.nl.conf' ?
If not, you can run "awstats_configure.pl" from command line, or create it manually.

Check config file, permissions and AWStats documentation (in 'docs' directory).

On creation i also get the fopen error, if fopen is on do i need to chown .httpsswd evry time someone installs awstats?

Thank you!
 
I have the same problem..

Recently moved to a new server. On the old one everything worked fine. Now on the new one we also upgraded apache, php & mysql tot newer version using custombuild. Safemode is off as default, so that must not be the problem altho it saying SAFE MODE restriction in effect.

I just checked and it`s off...

Anybody got an idea? Maybe suPHP or any other rights problem. I set just as a test the user to diradmin:diradmin on /etc/passwd and then its working. So its something in the rights thing.

I got the same problem. It also says me the Restriction but Safe Mode is off.
 
Needed to use a loop to get the password protection to work correctly. Figured I'd post it.

Code:
for user in `/bin/ls /usr/local/directadmin/data/users`; do chown -Rv $user:$user /home/$user/domains/*/public_html/awstats/; done
 
Back
Top