php 配置

IIS7

1、IIS要启用CGI功能,在设置IIS的时候有此选项。

2、IIS下,在所要配置的网站下,或者虚拟目录下选择处理程序映射,然后点击打开功能。

3、添加模块映射,在出来的对话框对应配置

  1)请求路径:*.php。

  2)模块:FastCgiModule。

  3)可执行文件:php所在目录下的php-cgi.exe。

  4)名称:随意起到标识作用的名称。

4、使用phpinfo()函数查看文件信息,先在php解压目录下设置php。ini,将其中的 date.timezone= "Asia/Shanghai"。

  检查项目是否正确

SystemWindows NT XIXI-PC 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) AMD64
Build DateFeb  5 2014 10:59:06
CompilerMSVC11 (Visual C++ 2012)
Architecturex64
Configure Commandcscript /nologo configure.js  "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--disable-isapi" "--disable-nsapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared" "--with-enchant=shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--disable-static-analyze" "--with-pgo"
Server APICGI/FastCGI
Virtual Directory Supportdisabled
Configuration File (php.ini) PathC:\Windows
Loaded Configuration FileC:\PHP\PHP\php.ini

转载于:https://www.cnblogs.com/theonewu/p/3550842.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值