I'm having some trouble with a PHP script I've written to write some directories to the file system using IIS7.5.
I'm using Windows Authentication with Anonymous Authentication disabled (thus current user credentials are passed through to IE). The script would run and write files to the same server and worked fine.
The directory being written to definitely has the correct permissions. When writing to the directory on FS1, I was originally using the local disk drive:
$basepath = D:\\Data;
This worked. I've made sure the user logged in (thus running the script) also has Full Control to the directory.
Because this folder is shared out to users as "Data", I then changed this to a UNC path:
$basepath = \\\\FS1\\Data;
This also worked.
However, I've moved the website to an alternative server (to seperate roles). The previous server (FS1) is now just a file server, with the second (WEB1) hosting the website. Both are Win2k8 R2 VMs using IIS7.5.
If I use the same UNC path on WEB1, I get a permission denied PHP error when running mkdir. I've tried writing back the other way as well (run the script from FS1 to a folder on WEB1) and get the same result.
I have Kernel-mode authentication turned OFF, extended protection turned OFF and Kerberos as the only authentication provider.
So I'm not sure why if I write to a UNC path on the same server all is fine, but if i write to a UNC path on a different server (same NTFS permissions) I get "permission denied".