问题描述
使用快速CGI我不能让它读取php.ini文件。请看下文中我的phpinfo。
using Fast CGI I can't get it to read the php.ini file. See my phpinfo below.
系统Windows NT的WIN-PAFTBLXQWYW 6.0版本6001
建立日期2009年3月5日19时43分24秒
配置命令CSCRIPT / NOLOGO configure.js--enable-快照构建--enable-调试包--with快照模板= D:\ PHP-SDK \ snap_5_2 \ VC6 \ 86 \模板 --with-PHP-构建= D:\ PHP-SDK \ snap_5_2 \ VC6 \ 86 \ php_build - 禁用ZTS - 禁用ISAPI - 禁用NSAPI--with- PDO-OCI = D:\ PHP-SDK \ ORACLE \ instantclient10 \ SDK,共享的--with-OCI8 = D:\ PHP-SDK \ ORACLE \ instantclient10 \ SDK,共享的--enable-htscanner =共享
服务器API CGI / FastCGI的
虚拟目录支持禁用
配置文件(php.ini中)路径C:\ WINDOWS
加载配置文件(无)
扫描该目录额外的.ini文件(无)
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,我确信它具有读取权限从网络服务两地
My php.ini file is residing in both my c:\php and my c:\windows I've made sure it has read permissions in both places from network service.
我添加各种注册表设置,环境变量和遵循网络和没有骰子作为尚未对发现多个教程。以后每次重新启动。
I've added various registry settings, Environment Variables and followed multiple tutorials found on the web and no dice as of yet. Rebooted after each.
我原来是用MS安装Web平台安装程序,然而因为我已经重新启动。
My original install was using MS "Web Platform Installer" however I have since rebooted.
在哪里何去何从将是最受欢迎的任何想法。
Any ideas on where to go from here would be most welcome.
推荐答案
我终于想通了这个问题。在Windows Server 2008默认情况下,显然有隐藏文件扩展名已知文件类型的默认情况下启用。我没有注意到它,因为它是显示扩展的其他文件,它周围
I finally figured out the problem. Windows Server 2008 by default apparently has "hide file extensions for known file types" enabled by default. I hadn't noticed it because it was displaying the extensions for other files around it
我已经改名为我的文件在某个时候php.ini.ini意外,这是出现在我的php.ini中,由于设定。
I had renamed my file to php.ini.ini at some point accidentally and it was appearing to me as php.ini due to the setting.
感觉真的很愚蠢的,当我想通了。但看上面有该设置的目录实际上很难说。
Felt really dumb when I figured it out. But looking at the directory with that setting on it's actually very difficult to tell.
这篇关于PHP配置文件将不会加载IIS7 64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!