iis 下php多个版本共存问题

gogo198 2010-10-13 03:26:19
在网上查了好多资料说的都不是很清楚,参考http://www.jz123.cn/text/1522864.html

主要是这里的php.ini的存放地址多的不是很清楚,他说放在windows/下面,放两个不就覆盖了。。。。还请知道的说下具体的配置,主要是在iis下
...全文
121 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
gogo198 2010-10-13
  • 打赏
  • 举报
回复
4楼的 这个是iis7专有的还是单另有一个这样的东西??没看明白
shootblue 2010-10-13
  • 打赏
  • 举报
回复
微软发布 PHP Manager for IIS 7 ,这个是前几天看的新闻。

  再也不用为在IIS上配置PHP而烦恼了,微软刚刚发布了面向IIS的PHP管理器版本1.0,x86和x64系统均可使用,用途如下:

  *关联PHP和IIS

  *并列运行多个PHP版本在同一台服务器上,甚至在同一网站

  *检查PHP运行时配置和环境(的phpinfo()函数的输出)

  *配置各种PHP设置

  *启用或禁用PHP扩展

  *远程管理php.ini PHP配置文件
gogo198 2010-10-13
  • 打赏
  • 举报
回复
服务器东西杂,所以Apache不考虑,我也清楚Apache比iis好弄
CunningBoy 2010-10-13
  • 打赏
  • 举报
回复
当然,你可以使用Apache作为另一个Web服务器载入不同的php.ini
CunningBoy 2010-10-13
  • 打赏
  • 举报
回复
php.ini是随Web服务器启动时载入的,php.ini搜索位置如下:
==============================================================
http://www.php.net/manual/en/configuration.file.php

php.ini is searched in these locations (in order):

■SAPI module specific location (PHPIniDir directive in Apache 2, -c command line option in CGI and CLI, php_ini parameter in NSAPI, PHP_INI_PATH environment variable in THTTPD)

■The PHPRC environment variable. Before PHP 5.2.0 this was checked after the registry key mentioned below.

■As of PHP 5.2.0, the location of the php.ini file can be set for different versions of PHP. The following registry keys are examined in order: [HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y.z], [HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y] and [HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x], where x, y and z mean the PHP major, minor and release versions. If there is a value for IniFilePath in these keys, then the first one found will be used as the location of the php.ini (Windows only).

■[HKEY_LOCAL_MACHINE\SOFTWARE\PHP], value of IniFilePath (Windows only).

■Current working directory (except CLI)

■The web server's directory (for SAPI modules), or directory of PHP (otherwise in Windows)

■Windows directory (C:\windows or C:\winnt) (for Windows), or --with-config-file-path compile time option
=========================================================================
在IIS下面应该只能载入一个php.ini

20,359

社区成员

发帖
与我相关
我的任务
社区描述
“超文本预处理器”,是在服务器端执行的脚本语言,尤其适用于Web开发并可嵌入HTML中。PHP语法利用了C、Java和Perl,该语言的主要目标是允许web开发人员快速编写动态网页。
phpphpstorm 技术论坛(原bbs)
社区管理员
  • 开源资源社区
  • phpstory
  • xuzuning
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧