在注册表[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map]
中加入串值".php" = "C:\Program Files\PHP\php.exe %s%s",
再在:HKEY_CLASSES_ROOT中
设置扩展明:New->key为.php
缺省值为phpfile
再创建一个名为phpfile的建,值为php script
在phpfile里再创建一个名为shell的建值为open
在open里再创建一个名为command的建值为C:\Program Files\PHP\php.exe -q%1

解决方案 »

  1.   

      You have installed PHP, but when try to access a php script file via your
      browser, you get a server 500 error:   Something went wrong when the server tried to run PHP. To get to see a
       sensible error message, from the command line, change to the directory
       containing php.exe and run "php.exe -i"
       If php has any problems running, then a suitable error message will be displayed
       which will give you a clue as to what needs to be done next.
       If you get a screen full of html codes (the output of the phpinfo() function) then
       php is working ok, and your problem may be related to your server configuration
       which you should double check.
      

  2.   

    在php.ini中的extension_dir你设置了没有?那是你的php安装目录
    另外MSVCRT.DLL和PHP4TS.DLL 再copy到c:\windows下试试!
      

  3.   

    其实在win2000+iis更简单!!
      

  4.   

    我的却出现了
    "HTTP 错误 403
    403.1 禁止:禁止执行访问如果从并不允许执行程序的目录中执行 CGI、ISAPI 或其他执行程序就可能引起此错误。如果问题依然存在,请与 Web 服务器的管理员联系。"
    的错误,怎么搞的呢?