PHP configuration file does not load IIS7 x64

using Fast CGI, I cannot get it to read the php.ini file. See My phpinfo below.

System Windows NT WIN-PAFTBLXQWYW 6.0 build 6001
Build Date Mar 5 2009 19:43:24
Configure Command cscript / nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-snapshot-template = d: \ php-sdk \ snap_5_2 \ vc6 \ x86 \ template" "--with-php-build = d: \ php-sdk \ snap_5_2 \ vc6 \ x86 \ php_build" "--disable-zts" "--disable-isapi" "--disable-nsapi" "--with- pdo-oci = D: \ php-sdk \ oracle \ instantclient10 \ sdk, shared "" --with-oci8 = D: \ php-sdk \ oracle \ instantclient10 \ sdk, shared "" --enable-htscanner = shared "
Server API CGI / FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path C: \ Windows
Loaded Configuration File (none)
Scan this dir for additional .ini files (none)

My php.ini file is in both my c: \ php and my c: \ windows. I made sure that he has read permissions in both places from the network service.

I added various registry settings, environment variables, and followed a few textbooks found on the Internet, and without bones. Reboots after each.

In my initial installation, MS "Web Platform Installer" was installed, but since then I rebooted.

+3
source share
1 answer

When I had problems downloading php.ini files, I found the following settings: key to execute.

--with-config-file-path=<path-to-php.ini> --sysconfdir=<path-to-php.ini>

In my case (on Linux) it was

./configure .....   --with-config-file-path=/etc --sysconfdir=/etc
+1

Source: https://habr.com/ru/post/1708918/


All Articles