fopen causing permission errors on IIS

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
clem_c_rock
Forum Commoner
Posts: 46
Joined: Mon Jun 07, 2004 9:18 am

fopen causing permission errors on IIS

Post by clem_c_rock »

Hello,

I'm trying to find out how to set the file permissions on an IIS server so I can execute file handling functions such as fopen, fputs, fclose ect.


I know this is pretty basic but I've yet to find a solution.

thanks for your help!

Clem C
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The user IIS runs under needs the permissions set for it. I don't know what to say more than that.
clem_c_rock
Forum Commoner
Posts: 46
Joined: Mon Jun 07, 2004 9:18 am

Post by clem_c_rock »

PROBLEM SOLVED!

The problem was that I was trying to grant the security permissions through IIS manager instead of simple old explorer. I just had to grant the default web viewing (in our case: IUSR_WW251) group permissions to the folder where the scripts were being read.

Here's what I did:

Windows Explorer >> Parent folder where scripts are reading/writing to files >> Sharing and Security >>
Security tab >> Add >> Advanced >> Find Now >> choose default web user (IUSR_WW251) >> OK >> OK
Post Reply