iis7 php 文件 不可写,PHP配置文件不會加載IIS7 x64

using Fast CGI I can't get it to read the php.ini file. See my phpinfo below.

使用快速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)

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.

我的php.ini文件駐留在我的c:\ php和我的c:\ windows中我確保它在網絡服務的兩個地方都有讀取權限。

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.

我添加了各種注冊表設置,環境變量,並遵循網絡上發現的多個教程,並且還沒有骰子。每次重啟后重新啟動。

My original install was using MS "Web Platform Installer" however I have since rebooted.

我原來的安裝是使用MS“Web平台安裝程序”,但我已經重新啟動。

1 个解决方案

#1

When I've had trouble loading php.ini files I found the following settings the key to getting it done.

當我在加載php.ini文件時遇到問題時,我發現以下設置是完成它的關鍵。

--with-config-file-path= --sysconfdir=

In my case (on Linux) it was

在我的情況下(在Linux上)它是

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值