现在开始安装php4,将软件包先用winzip解压到c:\php4下,再将目录下的所有dll文件拷到c;\winnt\system32下,不要覆盖已有的dll文件;接着将目录下的php.exe和php.ini-dist两个文件拷到c:\winnt下; 将c:\winnt\php.ini-dist改名为php.ini,并打开它,找到;Windows Extensions,将extension=php_calendar.dll
extension=php_zlib.dll
extension=php_ldap.dll
前的“;”去掉,关闭该文件。 打开“开始”按钮下的“程序”=》“管理工具”=》“internet服务管理器”,选中“默认web站点”,打开它的“属性”窗口。在“web站点”页下,改变“IP地址”:“全部未分配”为“(您机子的ip地址,例如:202.195.243.131)”;“TCP端口”为“80”。 接着,选中“主目录”页,单击“应用程序设置”下的“配置”按钮后,在新窗口下单击“添加”按钮;在“可执行文件”中输入“C:\WINNT\php.exe %s %s”,在“扩展名”中输入“.php”,点击“确定”。 接着,选中“ISAPI筛选器”页,单击“添加”按钮;在“筛选器名称”中输入“php”,在“可执行文件”中输入“C:\WINNT\system32\php4isapi.dll”,点击“确定”。 接着,选中“文档”页,单击“添加”按钮;在“默认文档名”中输入“index.php”,点击“确定”,并将其提高到最高级。您还可以添加常用的php文件名,如:“default.phtml”、“index.php3”等。 关闭所有窗口,重启系统后,可打开IE浏览器进行测试。 
 

解决方案 »

  1.   

    重启系统后直接提示不能location *。DLL 文件,能不能重头给我说一下怎么整啊? 我都整乱了
      

  2.   

    你是什么设置的, *DLL 都是什么文件阿? 是不是php_*.dll等等
      

  3.   

    对啊,
    now, when I open a IE , following message to be display:Security Alert! The PHP CGI cannot be accessed directly. 
    This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.For more information as to why this behaviour exists, see the manual page for CGI security.For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.
      

  4.   

    我刚才再php4目录下找到他说缺少的动态库,然后都拷贝过去了。然后就出现上面的提示了
      

  5.   

    老兄你看看php.ini 中的  extension_dir 路径是什么
      

  6.   

    是    extension_dir = ./应该是什么呀?
      

  7.   

    修改php.ini将cgi.force_redirect设为0,然后重起IIS。
      

  8.   

    IIS太难用了,建议你用apache 来配置
      

  9.   

    但是还有别的可能也要用IIS来配得啊?我现在在另外一台机子上重新配置,用windows apache哥们儿,现在是这个提示:
    Warning: open(/tmp\sess_3d12d910ff3adc60a8a8d46c1ef60af2, O_RDWR) failed: No such file or directory (2) in D:\Inetpub\wwwroot\indexing\index.php on line 1Warning: Failed opening '../database.inc' for inclusion (include_path='.;c:\php4\pear') in D:\Inetpub\wwwroot\indexing\index.php on line 11Warning: Can't connect to MySQL server on 'localhost' (10061) in D:\Inetpub\wwwroot\indexing\index.php on line 17Warning: MySQL Connection Failed: Can't connect to MySQL server on 'localhost' (10061) in D:\Inetpub\wwwroot\indexing\index.php on line 17Server unreachableWarning: open(/tmp\sess_3d12d910ff3adc60a8a8d46c1ef60af2, O_RDWR) failed: No such file or directory (2) in Unknown on line 0Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
      

  10.   

    我直接再这台机子上配apache可以部可以啊?要不要删以前的东西?
      

  11.   

    http://expert.csdn.net/Expert/FAQ/FAQ_Index.asp?id=3312
    文档在这里
      

  12.   

    兄弟,不要客气,有问题的话,你给我发消息好了,IIS我没有配过,不过apache 我是配过的,我现在管理mysql 就是用的 php的 myadmin