新建一个环境变量PHPRC,值为d:\php

解决方案 »

  1.   

    全加上去了
    configuration file(php.ini)path还是没有改过来,还是在c:\windows下面
    怪了,还少那里要改啊
      

  2.   

    这东西少dll的
    有没有手工配置成功的啊
      

  3.   

    我没有配置环境变量,<?php phpinfo(); >显示的配置文件就在php的目录下
      

  4.   


    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.   In order to use index.php as a default content page, do the following:
       From within the Documents tab, choose Add. Type in index.php and click
       OK. Adjust the order by choosing Move Up or Move Down. This is similar
       to setting DirectoryIndex with Apache.   The steps above must be repeated for each extension that is to be
       associated with PHP scripts. .php is the most common although .php3
       may be required for legacy applications.   If you experience 100% CPU usage after some time, turn off the IIS
       setting Cache ISAPI Application.
      

  5.   

    权限不够吧。你能PHP文件夹可执行权限了吗
      

  6.   

    导入如下注册表项(请根据实际位置修改值)[HKEY_LOCAL_MACHINE\SOFTWARE\PHP]
    "iniFilePath"="e:\\php5"
      

  7.   

    导入如下注册表项(请根据实际位置修改值)[HKEY_LOCAL_MACHINE\SOFTWARE\PHP]
    "iniFilePath"="e:\\php5"正解
      

  8.   

    在服务的配置中加入phpinidir"d:/php"就好了啊!
      

  9.   


    “在服务的配置中加入phpinidir"d:/php"就好了啊!”你这里的是指那里的服务配置??
      

  10.   

    我把PHP解压放到d:\php在环境变量里
    path 加了d:\php;d:\php\ext在iis里加了映射,加了web服务扩展在php目录IIS匿名帐号的全部权限在注册表里加了iniFilePath的值现在还是不能正确配到正确的PHP.ini的目录我还有那里不对啊