Previous Next

Thread: Cannot setup

Last post 03-01-2008 7:21 AM by slashrod. 21 replies.

Average Rating Rate It (5)

RSS

Page 1 of 2 (22 items) 1 2 Next >

Sort Posts:

  • 11-02-2006, 6:33 PM

    • jc_condor
    • Not Ranked
    • Joined on 11-02-2006, 11:25 PM
    • Posts 2

    Cannot setup

    I'm getting the following error

    C:\php\fastCGI-iis7>fcgisetup.exe /add c:\php\php-cgi.exe PHP
    Error: (null) (HRESULT 80070002)

    I am running Vista RC 1 ultimate 64 bit

  • 11-02-2006, 7:32 PM In reply to

    • mvolo
    • Top 10 Contributor
    • Joined on 09-17-2003, 1:48 PM
    • Philadelphia, PA
    • Posts 583

    Re: Cannot setup

    Can you make sure of the following:

    1) You are running from the directory that contains all of the required installation files (check readme.txt for the list)
    2) You have first installed the FastCGI support with:
             > fcgisetup.exe /install
    3) You made sure that the FastCGI program you are registering ( c:\php\php-cgi.exe ) exists.

    If it still breaks with this error, we'll have to investigate further.

    Thanks,

    Mike

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 11-03-2006, 10:09 AM In reply to

    • jc_condor
    • Not Ranked
    • Joined on 11-02-2006, 11:25 PM
    • Posts 2

    Re: Cannot setup

    1, 2, 3 checked. I think it has to do with Vista 64 bit and all these applications including PHP are 32.

    I'm starting again today. Please, if there are additional steps for 64bit please let me know.

    I removed everything did a system restore. Some how fcisetup.exe /install got my IIS to a point where the application pool would crash. Any way I've included application log, System log events.

    Log Name:      System
    Source:        Microsoft-Windows-WAS
    Date:          11/2/2006 7:18:59 PM
    Event ID:      5139
    Task Category: None
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      jcuribe-laptop
    Description:
    A listener channel for protocol 'http' in worker process '3420' serving application pool 'DefaultAppPool' reported a listener channel failure.  The data field contains the error number.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-WAS" Guid="{524B5D04-133C-4A62-8362-64E8EDB9CE40}" EventSourceName="WAS" />
        <EventID Qualifiers="32768">5139</EventID>
        <Version>0</Version>
        <Level>3</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2006-11-03T00:18:59.000Z" />
        <EventRecordID>4978</EventRecordID>
        <Correlation />
        <Execution ProcessID="0" ThreadID="0" />
        <Channel>System</Channel>
        <Computer>jcuribe-laptop</Computer>
        <Security />
      </System>
      <EventData>
        <Data Name="AppPoolID">DefaultAppPool</Data>
        <Data Name="ProcessID">3420</Data>
        <Data Name="param3">0</Data>
        <Data Name="ProtocolID">http</Data>
        <Binary>7E000780</Binary>
      </EventData>
    </Event>

     Log Name:      Application
    Source:        Microsoft-Windows-IIS-W3SVC-WP
    Date:          11/2/2006 6:35:02 PM
    Event ID:      2280
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      jcuribe-laptop
    Description:
    The Module DLL C:\Windows\system32\inetsrv\iisfcgi.dll failed to load.  The data is the error.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-IIS-W3SVC-WP" Guid="{670080D9-742A-4187-8D16-41143D1290BD}" EventSourceName="W3SVC-WP" />
        <EventID Qualifiers="49152">2280</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2006-11-02T23:35:02.000Z" />
        <EventRecordID>1337</EventRecordID>
        <Correlation />
        <Execution ProcessID="0" ThreadID="0" />
        <Channel>Application</Channel>
        <Computer>jcuribe-laptop</Computer>
        <Security />
      </System>
      <EventData>
        <Data Name="ModuleDll">C:\Windows\system32\inetsrv\iisfcgi.dll</Data>
        <Binary>7E000000</Binary>
      </EventData>
    </Event>

  • 11-05-2006, 7:12 PM In reply to

    • bills
    • Top 25 Contributor
    • Joined on 02-03-2006, 5:33 PM
    • Redmond, WA
    • Posts 425

    Re: Cannot setup

    JC, is IIS still working after recycle? 

     you're right that the bits are currently 32-bit only.  64bit versions will be available in the next release.  In the mean time, you'll most likely need to run 32bit appPools, and mark your handler as 32bit only.  See ThomaD's recent blog post on preconditions, and how to mark a handler as 32bit only.  To enable 32bit applications on an AppPool, navigate to the AppPools node in the UI, click advanced settings, and change this property:

    hope that helps -

    bill

    ~~~~~~~~~~~~~~~~~~~~~~~~
    Bill Staples
    Product Unit Manager, IIS
    blog: http://blogs.iis.net/bills
  • 11-07-2006, 5:46 PM In reply to

    • jccondor
    • Not Ranked
    • Joined on 01-28-2003, 11:04 AM
    • Posts 3

    Re: Cannot setup

    THX, I figuered this out on my own but this post will defenitly help others.

    I still can't get fastCGI configured.

    c:\php\fastCGI-iis7>dir
     Volume in drive C has no label.
     Volume Serial Number is 102B-4B94

     Directory of c:\php\fastCGI-iis7

    11/02/2006  05:30 PM    <DIR>          .
    11/02/2006  05:30 PM    <DIR>          ..
    11/02/2006  05:30 PM             1,030 iisfcgi_schema.xml
    11/02/2006  05:30 PM             9,445 license.txt
    11/02/2006  05:30 PM             1,630 readme.txt
                   3 File(s)         12,105 bytes
                   2 Dir(s)  26,044,125,184 bytes free

    c:\php\fastCGI-iis7>readme.txt

    c:\php\fastCGI-iis7>fcgisetup.exe /install
    'fcgisetup.exe' is not recognized as an internal or external command,
    operable program or batch file.

    php is installed and running ok with php-cgi.exe

    c:\php\fastCGI-iis7>fcgisetup.exe /install
    Stopping IIS services ...
    Copied files
    Registered FastCGI configuration section
    Installed FastCGI module
    Starting IIS services ...
    Success: Installation completed succesfully

    c:\php\fastCGI-iis7>fcgisetup.exe /add c:\php\php-cgi.exe PHP
    Error: (null) (HRESULT 80070002)

    c:\php\fastCGI-iis7>

  • 11-07-2006, 5:55 PM In reply to

    • mvolo
    • Top 10 Contributor
    • Joined on 09-17-2003, 1:48 PM
    • Philadelphia, PA
    • Posts 583

    Re: Cannot setup

    I am not sure I understand your directory listing of the source installation directory.  Its missing key files from the tech preview distribution - fcgisetup.exe, and iisfcgi.dll, to name a few.  Please unzip the tech preview again into that directory.

    The tech preview distribution was not supported for the x64 platforms, and has known issues preventing the installation from working.  We will most likely release a 64 bit version next week (can't promise though), and post an update to the forums.

    Thanks,

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 11-07-2006, 6:40 PM In reply to

    • jccondor
    • Not Ranked
    • Joined on 01-28-2003, 11:04 AM
    • Posts 3

    Re: Cannot setup

    I just figured out that fcgisetup.exe /install copyed the iisfcgi.dll to C:\Windows\SysWOW64\inetsrv but modified applicationHost.config to c:\windows\system32\inetsrv path. I fixed the applicationHost.config but still no luck. I'm guessing it has to do with the iisfcgi_schema which was also created under C:\Windows\SysWOW64\inetsrv\Config\Schema.

    Again the error under application log is The Module name iisfcgi path C:\Windows\SysWOW64\inetsrv\iisfcgi.dll returned an error from registration. 

    I'm moving everything to where it is expected in the system32 path....  OK new error

    Description: Module "ConfigurationValidationModule" could not be found

    Server Error --------------------------------------------------------------------------------
    HTTP Error 500.0 - Internal Server Error
    Description: Module "ConfigurationValidationModule" could not be found

    Will try to fcgisetup.exe /add again

    c:\php\fastCGI-iis7>fcgisetup.exe /add c:\php\php-cgi.exe PHP
    Configured FastCGI pool
    Created handler mappings
    Success: Installation completed succesfully

    ok Getting closer, but still the same

    Description: Module "ConfigurationValidationModule" could not be found

    Server Error --------------------------------------------------------------------------------
    HTTP Error 500.0 - Internal Server Error
    Description: Module "ConfigurationValidationModule" could not be found

  • 11-07-2006, 7:18 PM In reply to

    • jccondor
    • Not Ranked
    • Joined on 01-28-2003, 11:04 AM
    • Posts 3

    Re: Cannot setup

    OK Got it working. probably my fault but just in case.

      ApplicationHost.config <add name="ConfigurationValidationModule" type="" preCondition="bitness64" />

    I was missing the preCondition.

    Summery for fastCGI under VISTA 64bit

    • download php ( in my case www.php.net in my case 5.2.0) zip version
    • download latest fastCGI IIS 7 file
    • unzip php.zip to c:\php
    • copy php.ini-recommended to php.ini (I prefer to leave it in php folder but you can also copy it to c:\windows folder)
      • If you leave it in php folder then
        • [HKEY_LOCAL_MACHINE\SOFTWARE\PHP]
          "IniFilePath"="C:\\PHP"
        • I think ther's an other way with 5.2.0
    • unzip fastCGI in my case to c:\php\fastcgi7
    • open command promt as administrator (right click icon)
      • go to c:\php\fastcgi7
      • execute fcgisetup.exe /install
      • copy c:\php\fastcgi7\iisfcgi.dll to c:\windows\system32\inetsrv
      • copy c:\php\fastcgi7\iisfcgi_schema to c:\Windows\System32\inetsrv\config\schema
    • Modify default application pool to run 32bit apps
    • Modify applicationHost (c:\Windows\System32\inetsrv\config) so that all iisfcgi modules have a preCondition="bitness32" attribute.

    Or Wait until we have a 64bit version

  • 12-12-2006, 2:26 AM In reply to

    • virshu
    • Not Ranked
    • Joined on 12-10-2006, 5:29 PM
    • Posts 3

    Re: Cannot setup

    I think I did everything as described above... applicationHost.config now has the following line:

    <add name="php-iisfcgi" path="*.php" verb="GET,HEAD,POST" modules="iisfcgi" scriptProcessor="c:\Progs\PHP\php-cgi.exe" resourceType="Either" requireAccess="Script"  preCondition="bitness32"/>

    However, phpinfo.php (with a single operator phpinfo() ) gives me the following error page:

    HTTP Error 500.0 - Internal Server Error

    Description: Handler "php-iisfcgi" has a bad module "iisfcgi" in its module list
    Error Code: 0x8007000d
    Notification: ExecuteRequestHandler
    Module: IIS Web Core
    Requested URL: http://localhost:80/phpinfo.php
    Physical Path: C:\inetpub\wwwroot\phpinfo.php
    Logon User: Anonymous
    Logon Method: Anonymous
    Handler: php-iisfcgi

    Most likely causes:

    • A module is referenced in configuration, but the module has not been installed or the name of the module is misspelled.
    • IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
    • IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
    • IIS was not able to process configuration for the Web site or application.
    • The authenticated user does not have permission to use this DLL.

    I didn't quite understand the line above: <add name="ConfigurationValidationModule" type="" preCondition="bitness64" /> Should I add it? If yes - to which place (I assume in applicationHost.config - but to what place)? And why bitness64? I thought I am trying to get a 32-bit app running. 

    I have Vista 64-bit mode...

  • 12-12-2006, 12:26 PM In reply to

    • bills
    • Top 25 Contributor
    • Joined on 02-03-2006, 5:33 PM
    • Redmond, WA
    • Posts 425

    Re: Cannot setup

    Do you have an entry for iisfcgi in your <globalModules> list, like this:

                <add name="iisfcgi" image="PATH_TO:\Windows\system32\inetsrv\iisfcgi.dll" />

    and does the file exist?

    Also check to ensure you have an entry in your <modules> list for it as well:

                    <add name="iisfcgi" />

    bill

    ~~~~~~~~~~~~~~~~~~~~~~~~
    Bill Staples
    Product Unit Manager, IIS
    blog: http://blogs.iis.net/bills
  • 12-13-2006, 10:17 PM In reply to

    • virshu
    • Not Ranked
    • Joined on 12-10-2006, 5:29 PM
    • Posts 3

    Re: Cannot setup

    no, I didn't... either I missed it, or this was missing in the instruction :)

    Once I added (with preCondition, for good measure) - it looks like everything is working now. Unbelievable! Thanks everybody

  • 04-16-2007, 6:00 PM In reply to

    • kuria
    • Not Ranked
    • Joined on 04-16-2007, 9:56 PM
    • Posts 2

    Re: Cannot setup

    I have the same problem. I use your guide but i follow with the problem

    Server Error in Application "Default Web Site"


    HTTP Error 500.0 - Internal Server Error

    Description: Handler "PHP-iisfcgi" has a bad module "iisfcgi" in its module list

    Error Code: 0x8007000d

    Notification: ExecuteRequestHandler

    Module: IIS Web Core

    Requested URL: http://localhost/phpmyadmin210/index.php

    Physical Path: C:\inetpub\wwwroot\phpmyadmin210\index.php

    Logon User: Anonymous

    Logon Method: Anonymous

    Handler: PHP-iisfcgi

    Most likely causes:

    • A module is referenced in configuration, but the module has not been installed or the name of the module is misspelled.
    • IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
    • IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
    • IIS was not able to process configuration for the Web site or application.
    • The authenticated user does not have permission to use this DLL.

    What you can try:

    • Verify that the module is installed. The error description may contain additional information to help you determine which module is causing the error.
    • If the module is installed, verify that the module name is not misspelled in the configuration/system.webServer/handlers config section.
    • Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.
    • Check the event logs to see if any additional information was logged.
    • Verify the permissions for the DLL.
    • Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.

    More Information... This error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error.

    Microsoft Knowledge Base Articles:


    Server Version Information: Internet Information Services 7.0.

     

     

     

    I have iis 7 windows vista 32 bit business and I install cgi component with

    fcgisetup.exe /install 

     fcgisetup.exe /add c:\php\php-cgi.exe PHP

     

    please someone have some idea? thanks :)

     

  • 04-16-2007, 6:03 PM In reply to

    Re: Cannot setup

    Hi Kuria,

    Please can you check if iisfcgi is in your <globalModules> and <modules> section in windows\system32\inetsrv\config\applicationHost.config.

    Thanks,

    Rick.

  • 06-17-2007, 2:37 PM In reply to

    • jim0615
    • Not Ranked
    • Joined on 06-30-2006, 3:51 PM
    • Posts 3

    Re: Cannot setup

    I'm having the same problem with fcgi, i get the Error: (null) (HRESULT 80070426) message when i install fcgi. And when i try to access the phpinfo page i get the following error.

     HTTP Error 500.0 - Internal Server Error

    Description: Handler "php-iisfcgi" has a bad module "iisfcgi" in its module list

    Error Code: 0x8007000d

    Notification: ExecuteRequestHandler

    Module: IIS Web Core

    Requested URL: http://localhost:80/phpinfo.php

    Physical Path: C:\inetpub\wwwroot\phpinfo.php

    Logon User: Anonymous

    Logon Method: Anonymous

    Failed Request Tracing Log Directory: C:\inetpub\logs\FailedReqLogFiles

    Handler: php-iisfcgi

    I checked the applicationhost.config file for the entries mentioned in this post and found no problems.

    I did also find the following entry.

    <fastCGI>
                <application fullPath="c:\php\php-cgi.exe" />
    </fastCGI>

    Any help would be appreciated.

  • 07-13-2007, 11:48 AM In reply to

    Re: Cannot setup

    Hi jim0615,

    The error "Handler X has a bad module Y in its module list" can only happen for two reasons:

    1) system.webServer/handlers/add@modules contains a module that is not in system.webServer/modules. (remember that <modules> can be overridden in web.configs, so you may want to review c:\inetpub\wwwroot\web.config if it exists)

    2) A module is configured correctly to be a handler, but does not actually subscribe to RQ_EXECUTE_REQUEST_HANDLER.

    We can confirm (2) is not true, by finding the value of the modules attribute in <handlers> for *.php, then looking for that value in <globalModules> and ensuring that the file system path is correct.

    That leaves (1), could you share the output of "findstr /i fcgi \Windows\system32\inetsrv\config\applicationHost.config"?

    Thanks,

    Rick.

Page 1 of 2 (22 items) 1 2 Next >
Page view counter