Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

First of all congrats to everyone who posts over here and contributes for a better environment ... Anyways, lets boil it down to the problem.

Step 1 - I downloaded IIS 7.0 for windows 7 x64 and installed it. Everything is working fine and displaying the default website as expexted.

Step 2 - I then downloaded the PHP web Platform installer installed php ...together with php manager 1.0. I then created a folder in default website ..... put an index.php in it with (phpinfo) converted this newly created folder to an application and it all showed up and worked a charm....

Step 3 - I then was developing a particular PHP application which requires saving of files onto the server and for some strange reason was unable to save.... thought it was all boiling down to folder permissions maybe... So I went through the permissions but the folder inherits permissions from inetpub... and am not changing that ... therefore i went to the next step

Step 4 - I tried creating a new website in IIS (files located in different physical location on hard drive... read write permissions enabled - full control) but it did not show up (with the index.php in the folder) so this was funny so i did further testing...

Step 5 - Created a new website ... did the usual settings (default app pool ... inserted an alias .. and located the SAME APPLICATION i created earlier in the wwwroot to see if it shows up.. and it didn't .....................

Now I am quite short of ideas. It is weird how php applications within the wwwroot folder work fine but cannot seem to get saving operations to work in here... But it is just as weird that when i located the application which works through localhost does not work from the newly created website e.g. (with physical path to the same app file above).

I really would appreciate your help on this. I would like to solve the saving issue ... and hopefully create a phproot folder use it separate from the wwwroot and get it to show in the browser ... in this manner I can put my php work in it and ... I use wwwroot for ....

Your input on this subject is most welcome.

I send my best regards to everyone


PS: I used to use IIS 6.0 but never ran into these problems ...

share|improve this question
Give IUSR read / write permissions as per your requirement. there is also a IUSR or IIS user group but iusr should do it for you. – rihatum Dec 7 '10 at 15:33
IIS_IUSRS. . . had full control ... sorry if i did not say it before ... – Alcatraz Dec 8 '10 at 3:43
up vote 0 down vote accepted

There are 2 user accounts that may come into play. One is the app pool identity set on the app pool, and the other is the anonymous user account set on the website (I assume that you're using anonymous).

First off, on the website Authentication / Anonymous settings, set that to use the app pool identity. Then you only have 1 user to worry about.

For the app pool, you can set a custom user, or use IIS APPPOOL{app pool name}. That's the user that needs write permissions on disk. Also make sure that the PHP app isn't writing to a different folder than you expect ... one that doesn't have permissions.

For why PHP doesn't work under another site, do you get any error or status code? It may be the binding isn't correct.

Some great tools to help are: - process monitor from Pretty easy to learn and it's a quick download and free. Run it while you reproduce the issue. Then stop it so that it doesn't overwhelm you with data. Search for the word 'denied'. That should jump right to where your issue is. (use this for both the first site and second site issues) - IIS logs will tell what status code you get for the second issue issue. - Failed Request Tracing (FRT) can be set at the site level, and it will also tell you a lot. This will be more helpful on the second site issue.

share|improve this answer
I looked into the issue in detail and still seem not to find the cause to the problem. Let me try and explain myself better (maybe it's my explanation I don't know). The anonymous user and the IIS_IUSRS groups were both added properly in the permissions. I put the anonymous user in the Website ... and the IIS_IUSRS in the applicaiton folder. Let's start first things first. I need to be able to create a website which is separate of wwwroot folder (in a different location) and I want to be able to host it on my local iis7. so far its like DNS is not responding..and the page doesnt turn up. – Alcatraz Dec 8 '10 at 13:44
Ok, check things in this order: - ping the domain and make sure that it resolves to the correct IP - make sure that your new website has bindings for that new IP. Leave the host header blank unless you require it - setup a test.html page with a simple 'test' in the body. Make sure that works - once you get that working, then try a simple test.php page. That breakdown in steps will hopefully narrow down at which point it's broken. – Scott Forsyth - MVP Dec 8 '10 at 14:02
ok now ... the response i got is .... – Alcatraz Dec 10 '10 at 21:06
ok now ... the response i got from ping was as expected ... "Ping request could not find host Please check the name an d try again." ... so it is not responding ... I only put an http binding and on port 80 ... am I doing anything wrong in this regard? – Alcatraz Dec 10 '10 at 21:12
Ok, that's helpful. That means that the issue isn't related to the http binding or IIS settings. It's up at the DNS level. Make sure that is registered in your hosts file, network domain server or on the web, depending on what it is. For a quick test, just drop it in your hosts file in c:\windows\system32\drivers\etc\hosts. – Scott Forsyth - MVP Dec 11 '10 at 22:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.