IIS almost there

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
terence
Forum Newbie
Posts: 21
Joined: Fri Jun 06, 2003 11:31 pm
Location: new york city

IIS almost there

Post by terence »

I am having issues with permissions on IIS
I would like to be able to access php scripts in the wwwroot folder.
is that possible?

here is the error i get:

HTTP Error 403
403.1 Forbidden: Execute Access Forbidden

This error can be caused if you try to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.

Please contact the Web server's administrator if the problem persists.

thanks,
terence
terence
Forum Newbie
Posts: 21
Joined: Fri Jun 06, 2003 11:31 pm
Location: new york city

Post by terence »

when i run my phpinfo(); by double clicking it on the server and it launches the command prompt i see all the php info that i'm used to seeing go scrolling by wiht the associated html tags.

why is this not working on the browser- all the permissions on iis have been set to read write and execute 20 times over.

i'm lost and running out of time!

any suggestions will help-
thank you,
t-
terence
Forum Newbie
Posts: 21
Joined: Fri Jun 06, 2003 11:31 pm
Location: new york city

progress?

Post by terence »

cgi.force_redirect = 1

is that correct given the problem I'm having with the permissions?

niot quite sure- new to php installationand very new to IIS.

also do we restart IIS each time we edit the .ini file or make any changes to the configuration - like altering the permisions of a file or directory?

thanks
hedge
Forum Contributor
Posts: 234
Joined: Fri Aug 30, 2002 10:19 am
Location: Calgary, AB, Canada

Post by hedge »

When you installed IIS, it will have created a local user IUSER_<machine name>... The webserver runs as this user so therefore php also runs as this user. You must give this user permissions to the folders.

This user must also have read/execute permission to the php folder.
Post Reply