Forum Moderators: DixonJones

Message Too Old, No Replies

Need help in setting up awstats

         

Raymond

7:27 pm on Jul 11, 2004 (gmt 0)

10+ Year Member



Everything seems to work fine but the "update now" link on the page. It gives this error message:
Warning: Failed to rename "C:\Inetpub\wwwroot\xyz\cgi-bin/awstats072004.localhost.tmp.3492" into "C:\Inetpub\wwwroot\xyz\cgi-bin/awstats072004.localhost.txt".
Write permissions on "awstats072004.localhost.txt" might be wrong for an 'update from web' or file might be opened.

If I run the update from the command prompt, it seems to work fine, but if I click on update now, it screws everything up and I have to run it from command prompt again. How do I resolve this?

Also, currently I made IIS to log everything in 1 file: extend1.log, but what if I want to log it by the date like this, ex010201.log? Is there a way to configure awstates to read all files in a directory?

BwanaZulia

10:02 pm on Jul 15, 2004 (gmt 0)

10+ Year Member



You need a different permission level on the directory where AWstats stores its files if you are going to update from the web. It has to be enabled for the web user (sometimes 'nobody') to write to that directory.

BZ

wkitty42

10:26 pm on Jul 29, 2004 (gmt 0)

10+ Year Member



i run awstats on a system that doesn't use permissions... this is not always a permissions problem... on my site, if i go and delete the .BAK file, then it will update just fine... otherwise, it fails... the code appears to be ok as far as i can tell... it is a consistant problem... i think that one fix is to tell aws to not make backup copies... one can always make backups of the aws datafiles via other methods ;)

wkitty42

10:36 pm on Jul 29, 2004 (gmt 0)

10+ Year Member



for the log names, you need to take a close look in the config at the logfile variable setting... either that or specify the logfile name on the commandline... if you can't do it in the config, you won't be able to use the button to update the stats :o

as a guess, i'd say that that logfile name is in year month day format... if so, the following might be what you are after...

LogFile="/your/path/here/ex%YY-0%MM-0%DD-0.log"

however, DO NOT take my word for it... look it up in the config file... its the second setting and there's a complete explanation of everything right there ;)