Il-Belti;10996393 wrote:I solved the problem by installing xampp and disabling IIS.
Just so you know, file permissions don't go away just because you use a different application, thus they still apply. It would seem, however, that you're executing the Apache process under an account that has the required permissions to write to the desired folder.
Il-Belti;10996393 wrote:However, just for curiosity any idea where to look for to give the permissions, if I ever use IIS again?
I don't have access to an IIS server at the moment (I've stayed far, far away from using any form of Windows in a production server for some time now :p), so I can't remember the exact location. Somewhere in the IIS manager app, though, is a way to configure your "Application Pools" I think is what it's called. Assuming your website in IIS is configured to use the default app pool, you'll want to view the properties of that pool. Somewhere in those properties is a configuration setting that tells IIS what user account to use when starting up that application pool. This is the account that will need the write permissions.
Note that as a cheap workaround to actually finding this setting, you could probably determine what account PHP is being executed under by viewing a script like:
system('whoami');