自己试了n久都没有成功特写下详细步骤 请大侠们看看 指正下:
操作系统:win2003 iis已经成功安装 可以解析静态网页
1.将php5.0解压到'C:\PHP'目录下
2.将目录下得php.ini-dist复制到c:\windows\改名为 :php.ini
将php.ini做如下修改:
register_globals = Off 
修改为 on 状态. 
;include_path = ".;c:\php\includes" 
去掉开头的;注释符号. 
extension_dir = "./" 
填写路径. c:/php/ext 
extension=php_mysql.dll 
extension=php_gd2.dll 
把开头的;注释符号去掉. 
;session.save_path = "/tmp" 
把开头的; 注释去掉. 
同时修改目录路径. 
win2003系统为 c:/windows/temp 
保存修改.
3.把PHP下所有dll文件都拷贝至c:/windows/system32
4.打开Internet信息服务(IIS)管理器->默认网站->右击->属性->打开主目录--配置 
添加映射. 
可执行文件.浏览选中 C:\php\php5isapi.dll 
扩展名填写 php 
允许的动作 全部
添加 ISAPI筛选器. 
打开Internet信息服务(IIS)管理器->默认网站->右击->属性->ISAPI筛选器
可执行文件.浏览选中 C:\php\php5isapi.dll 
一路确定
完毕
重启IIS
新建文件index.php
内容:
<html>
 <head>
  <title>PHP 测试</title>
 </head>
 <body>
 <?php echo '<p>Hello World</p>'; ?>
 </body>
</html> 
输入网址:HTTP://localhost/index.php-->
失败 
--------------------------------------------------------------------------------
无法找到该页
您正在搜索的页面可能已经删除、更名或暂时不可用。 
--------------------------------------------------------------------------------特此求教到底是哪里错了???!!!

解决方案 »

  1.   

    http://hi.baidu.com/psart/blog/item/b320d5c482c4d7a88226acd8.html
      

  2.   


    Windows NT/200x/XP and IIS 4 or newer   PHP may be installed as a CGI binary, or with the ISAPI module. In
       either case, you need to start the Microsoft Management Console (may
       appear as 'Internet Services Manager', either in your Windows NT 4.0
       Option Pack branch or the Control Panel=>Administrative Tools under
       Windows 2000/XP). Then right click on your Web server node (this will
       most probably appear as 'Default Web Server'), and select 'Properties'.   If you want to use the CGI binary, do the following:     * Under 'Home Directory', 'Virtual Directory', or 'Directory', do the
           following:
         * Change the Execute Permissions to 'Scripts only'
         * Click on the 'Configuration' button, and choose the Application
           Mappings tab. Click Add and set the Executable path to the
           appropriate CGI file. An example PHP 5 value is: C:\php\php-cgi.exe
           Supply .php as the extension. Leave 'Method exclusions' blank, and
           check the 'Script engine' checkbox. Now, click OK a few times.
         * Set up the appropriate security. (This is done in Internet Service
           Manager), and if your NT Server uses NTFS file system, add execute
           rights for I_USR_ to the directory that contains php.exe /
           php-cgi.exe.   To use the ISAPI module, do the following:     * If you don't want to perform HTTP Authentication using PHP, you can
           (and should) skip this step. Under ISAPI Filters, add a new ISAPI
           filter. Use PHP as the filter name, and supply a path to the
           php4isapi.dll / php5isapi.dll.
         * Under 'Home Directory', 'Virtual Directory', or 'Directory', do the
           following:
         * Change the Execute Permissions to 'Scripts only'
         * Click on the 'Configuration' button, and choose the Application
           Mappings tab. Click Add and set the Executable path to the
           appropriate ISAPI DLL. An example PHP 5 value is:
           C:\php\php5isapi.dll Supply .php as the extension. Leave 'Method
           exclusions' blank, and check the 'Script engine' checkbox. Now,
           click OK a few times.
         * Stop IIS completely (NET STOP iisadmin)
         * Start IIS again (NET START w3svc)   With IIS 6 (2003 Server), open up the IIS Manager, go to Web Service
       Extensions, choose "Add a new Web service extension", enter in a name
       such as PHP, choose the Add button and for the value browse to either
       the ISAPI file (php4isapi.dll or php5isapi.dll) or CGI (php.exe or
       php-cgi.exe) then check "Set extension status to Allowed" and click OK.这是php自带的说明文档,希望对你有帮助!按照步骤一步步来。
      

  3.   

    你这只是配置php.ini
    如果用iis的话,iis也要更改的
      

  4.   

    具体我也不会。没搞过。因为lamp是最佳配置,为什么有appache不用,却用iis呢
      

  5.   

    OK 问题已解决appache+IIS搭建成功