Iis 7 settings directory permissions need to pay attention to the problem

  
                  

Some time ago, after configuring IIS 7.5+PHP(FASTCGI)+MYSQL on the windows server 2008 r2 (x64) server, the operation has been normal. Until yesterday, due to the failure of online backup mysql failed.

php shows execution success, but the execution time is an astronomical number —— This situation has been encountered in the php environment where nginx or apache was previously configured. The reason is that the php memory limit is too small, or The timeout setting is too small. However, after modifying the fastcgi execution time and increasing the php memory, the problem remains.

Then consider the issue of execution permissions, so the default four accounts (create directory, system, administrator, users) are all set to be readable and writable and unexecutable — — the result is still not.

When I was almost crazy, I suddenly remembered that the iis7.5 running account was not in the traditional user list, but a group of passwordless accounts under the IIS_Iusrs group.

Then given the read and write permissions of the relevant read-write directory iis_iusrs, ok, the file execution read is normal.

The IIS_IUSRS built-in group replaces the IIS_WPG group in iis7.5, which is also a noteworthy place.

Another thing to note is that if you don't need to manipulate objects, such as .html, .php, etc., a non-object file or directory, you don't need to set the directory permissions for —— or you can set the system. Read and write permissions to achieve.

Copyright © Windows knowledge All Rights Reserved