使用快速CGI我无法得到它读取php.ini文件。 看到我的phpinfo下面。
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)
我的php.ini文件驻留在我的c:\ php和我的c:\ windows中我确定它已经从networking服务的两个地方读取权限。
我已经添加了各种registry设置,环境variables,并遵循网上find的多个教程,并没有骰子。 每次之后重新启动。
我原来的安装使用MS“Web平台安装程序”,但我已经重新启动。
任何想从哪里去这里的想法将是最受欢迎的。
最终我发现这是一个虚假的错误。 我无法看到扩展名,因为Server 2008已知在服务器操作系统上默认禁用了扩展名。
所以php.ini.ini出现在php.ini文件浏览器中
创build一个文件info.php
<?php phpinfo(); ?>
将其保存到Web发布的目录中。
并使用浏览器查看文件的输出,请参阅
configuration文件(php.ini)path
要使64位IIS加载32位DLL,就像PHP使用的那样,您需要运行此脚本。
cscript%SYSTEMDRIVE%\ inetpub \ adminscripts \ adsutil.vbs SET W3SVC / AppPools / Enable32bitAppOnWin64 1