IIS and PHP restrict IO permissions

Posted by ULTRA_POROV on Server Fault See other posts from Server Fault or by ULTRA_POROV
Published on 2011-02-20T21:54:15Z Indexed on 2011/02/20 23:26 UTC
Read the original article Hit count: 201

Filed under:
|
|

I have php installed trough a fastCGI module.

Is there a way to restrict the module (php.exe) read / write permissions to only the directory (+ subdirs) of the IIS site that is calling it?

I need this to prevent one IIS PHP site from having access to files outside its own directory.

How to do this? Is there a setting in php.ini or in the IIS configuration?

I believe such a feature could exist, because when a file on the server is requested the root path of the site is also known, all it would take is that IIS passes this path to the php module, and the php module should on its end allow only IO operations within this path.

PS: I know it is possible to achieve this by using a different windows account for each website, this is not an option.

© Server Fault or respective owner

Related posts about security

Related posts about php