Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AWStats - Error - Writing to File :: Permission Denied

Status
Not open for further replies.

net123

Programmer
Oct 18, 2002
167
US
I recently downloaded ActivePerl and the latest AWStats and I must say it is amazing!

I have setup AWStats on my localhost PC and everything works beautifully! I then attempted to install it on a production server which has the Log Files in C:/ and Perl and AWStats installed on the F:/. When I use CLI, everything seems to be fine with -update the config file. I can also create a -staticlink html file easily with icons.

But this is where I am having trouble: When I try to view these stats via my browser on my client PC, the stats do come up, but I can't Update Now them. I get the following error:

Error: Couldn't open file "F:\cgi-bin/awstats122003.webserver.tmp.3140" for write: Permission denied

Setup ('F:\cgi-bin\awstats.webserver.conf' file, web server or permissions) may be wrong.
See AWStats documentation in 'docs' directory for informations on how to setup awstats.[/red]

Trust me, I have tried all kinds of configurations, but nothing so far. The one thing I have not tried after all of my configuration changes is Reboot the web server! Do I have to do this? Also, none of the images work, i.e. come up. It comes up on the static .html file that I created via the CLI, but not via the URL on my PC.

It seems to be write permissions for the Update and view permissions for the icon folder. Hmmm, I can't seem to figure it out.

Any assistance will be greatly appreciated.
 
Is the F:/ drive on the local machine? If not you may have to grant the IUSR_whatever user access to the network share to access them

You can see them, because you have permissions, but the webuser may not

Just a thought
--Paul
 
PaulTEG:

Thanks for your reply. The F:/ drive is on the remote server. So my configuration is as follows:

Remote Server (Production Web Server):
C:/ == WINNT/system32/LogFiles...
F:/ == F:/Perl and F:/cgi-bin

F:/Perl is where I installed ActivePerl and all of its components.
F:/cgi-bin is my web directory I setup for AWStats analysis.
C:/ where the log files are kept for the whole web site (which is all of the F:/)

Hope this helps.
 
Make sure the web user "IUSR_whatever" has access to the F:/ drive. On NT, user permissions should be denied for remote users

-Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top