I've been looking for a solution to my problem for several days now. Unfortunately I could not find a solution yet.
We work here in our company with Laravel (php) and Windows servers 2016. I have a Laravel web application that runs on an IIS 10 with Windows authentication. For security reasons we have decided to activate fastcgi.impersonate. Since we switched on impersonate in php.ini, there is a permission error on files in the Laravel application (e.g.** laravel.log**). Since then, files are no longer accessed with the IUSR, but with the user account that logs onto the web application (e.g. domain\sabine.sample). However, these users should not have direct access to the file system.
Does anyone know a solution that not the logged-in Windows account accesses the files, but again the IUSR or Apppool user?
My setup:
- Windows Server 2016
- IIS 10
- PHP 7.2.21
- Laravel 5.8.36
Edit:
These are the errors the browser shows.