I would speculate (but am not 100% certain on this, would need research/testing to confirm) that the Identity specified in the Application Pool is used by executing. However, all of the sites/applications I have deployed on IIS are. In the past, I have always used the approach of setting Identity via Application Pool and that has allowed my code to access Network shares via UNC path. For example, MYDOMAINmyAccount.Īfter making this change, you will need to do the following:įrom the comment discussion on this answer, was able to get the PHP script to be able to access the network share via UNC path using WebSite -> Basic Settings -> "Connect As" and setting the credentials there. You should make sure that if you are using an Active Directory Domain Account, you provided that correctly under Identity for the running App Pool. Click it, provide credentials for your account that has permission to access the share. There will be an entry for Identity (it is under the Process Model section). In the IIS Manager, select the Application Pool under which your Web Site is running.Ĭlick "Advanced Settings". For IIS 7 running on Windows Server 2008 R2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |