.user.ini inheritance problem

A

Anonymous

Guest
Hi and nice to be a member of this forum!

I'm experiencing this problem and can't figure out for days :/
Web site has both physical and virtual directories in which php files reside. They all need to have access to a configuration file. I have created .user.ini file and placed it in a root directory. IIS can look for this file when I run php file from anywhere, any subdirectory but only located within the physical directory. It can not see it from the virtual directory. File and folder permission is not the case, I think. It does not matter if the physical folder also located in the same root folder of the web site.

So if I run DefaultWebSite/Physical1/phpinfo.php - it works, php has new configuration picked up from .user.ini
If I run DefaultWebSite/Virtual1/phpinfo.php - it does not, php has the default configuration picked up from php.ini

y4m3eoUKWvdBuvBM7ap6mer5ZffbCosgNUloibRKfeybUnYYM5KzRC-akrm5cVUVayeJoQYim41MFt2fUjLIQysqoqU4AaXn6V-Mer5_jmqHuwg1ASXuBMSRaOu6VBsyofJnOcxKwhz38JIYOqxEL5HYyUIvri50XO3w1TnfH_xN5b6B1CZTyHyu74pvgWFlj8p


IIS version 10
PHP version 7.2, 74, 8 via FastCGI
Windows Server 2022

Any help is appreciated!
 
Some steps to solve this include :
Confirm PHP Settings
Check IIS Configuration
Virtual Directory Configuration
Check PHP Handler Mapping
Restart IIS

By following these steps your problem should be solved.
 
Back
Top