IIS7, "HTTP Error 503. The service is unavailable", AppPool failing - Inetserver

This is a discussion on IIS7, "HTTP Error 503. The service is unavailable", AppPool failing - Inetserver ; my AppPools keep failing, errors in EventViewer say Failed to find the RegisterModule entrypoint in the module DLL C:\bin \php5\php-cgi.exe. The data is the error. This was a module I created at one time, but I later removed it. I ...

+ Reply to Thread
Results 1 to 6 of 6

IIS7, "HTTP Error 503. The service is unavailable", AppPool failing

  1. Default IIS7, "HTTP Error 503. The service is unavailable", AppPool failing

    my AppPools keep failing, errors in EventViewer say

    Failed to find the RegisterModule entrypoint in the module DLL C:\bin
    \php5\php-cgi.exe. The data is the error.

    This was a module I created at one time, but I later removed it. I
    have check my modules both at the machine level, the web site level,
    and the application/folder level and there are no references to this
    anywhere.

    I searched the registry and all files in c:\windows and found nothing

    I don't know what is referencing this and how to find it so I can't
    get rid of it. My IIS is completely useless. I've uninstalled and
    reinstalled IIS but when I reinstalled all of my metadata settings
    reappeared, I wanted a clean install of IIS.

    The whole reason I did this is because a PHP app that was running fine
    for some time now stopped being able to load a PHP module, then the
    whole PHP app wouldn't work at all. I tried all kinds of ISAPI/Module/
    Script map settings, including trying to use the php-cgi.exe instead
    of the ISAPI DLL. Now my entire IIS is hozed and my .NET apps don't
    work anymore. I'm about ready to throw this computer out the window
    if I can't figure out how to get my app pools working again. I don't
    know why what was once working no longer works. The only thing I can
    think of is a Windows update that changed something in IIS.

    Now I don't care about getting my PHP app running IIS again, I'll use
    Apache if I have to. But I need my .NET apps that I develop to work
    and I can't get those working now either.

    I'm on Vista Ultimate, 32-bit.


  2. Default Re: IIS7, "HTTP Error 503. The service is unavailable", AppPool failing

    Based on the error you describe, I am pretty certain you hosed your
    own machine. Maybe it was unknowingly following instructions, etc, and
    you no longer remember the steps... but don't just blame Windows
    Update. Take responsibility for your own actions.


    > Failed to find the RegisterModule entrypoint in the module DLL C:\bin
    > \php5\php-cgi.exe. The data is the error.
    >
    > This was a module I created at one time, but I later removed it. I
    > have check my modules both at the machine level, the web site level,
    > and the application/folder level and there are no references to this
    > anywhere.


    IIS7 looks for RegisterModule entrypoint of image files named within
    <globalModules> section of %windir%\System32\inetsrv\config
    \applicationHost.config. I am pretty certain you will find a C:\bin
    \php5-php-cgi.exe globalModule reference in that file.

    If you want to install PHP on IIS7, just read:
    http://blogs.msdn.com/david.wang/arc...S7-Part-3.aspx


    > I searched the registry and all files in c:\windows and found nothing


    IIS7 does not keep any configuration in the Registry nor in C:
    \windows.
    - Registry contains legacy hacks as well as non-runtime tweaks which
    are not relevant in your scenario.
    - %windir% does not include any IIS7 file other than the installation
    log, %windir%\IIS7.log


    > I don't know what is referencing this and how to find it so I can't
    > get rid of it. My IIS is completely useless. I've uninstalled and
    > reinstalled IIS but when I reinstalled all of my metadata settings
    > reappeared, I wanted a clean install of IIS.


    Try the following command to search for text:
    pushd %SYSTEMDRIVE% & findstr /spinc:"C:\bin\php5\php-cgi.exe" *

    Why should reinstalling IIS result in a "clean install of IIS". Please
    define what you mean by "clean install of IIS".

    I can only say that it is technically impossible since IIS7 consists
    of 40+ Components, of which any combination could be a user's
    "default" or "clean" install. But wait, what if user first installs 40
    components but later removes 5 components and considers the 35
    component installation to be "clean default install" -- how in the
    world can IIS setup know that? All IIS setup knows is that users are
    adding and removing components. It doesn't know what is "default" or
    "clean".

    Suppose you magically indicate to IIS setup that an installation with
    42 components is the "default clean install". IIS still cannot backup/
    restore the configuration for you because if you later add/remove
    components, the backup configuration file may no longer be valid
    because it can be referencing removed modules and fail to reference
    added modules.

    In other words, there is no default/clean install of IIS7, and
    expecting reinstallation to magically clean things up and fix one's
    mistakes is hardly realistic.


    //David
    http://w3-4u.blogspot.com
    http://blogs.msdn.com/David.Wang
    //


  3. Default Re: IIS7, "HTTP Error 503. The service is unavailable", AppPool failing

    David,

    Thanks for all of your help. It is very informational. Luckily,
    about 6 hrs after I wrote that post I noticed that Vista had created a
    Restore Point for me last Saturday when I did a backup (using the
    built-in Vista backup software) so I restored the OS from that restore
    point and everything was working as before. Whew! Thanks Vista!


  4. Default RE: IIS7, "HTTP Error 503. The service is unavailable", AppPool failing

    David Wang, you are a genius!

    I had a similar problem with IIS7 after installing ActiveState Perl and trying to add a script map for .pl files.

    Your tip about the applicationHost.config file did the trick for me. There was an entry in there pointing to Perl.exe. I removed that and IIS worked like new.

    Thanks!

    From http://developmentnow.com/g/59_2007_...ol-failing.htm

    Posted via DevelopmentNow.com Groups
    http://www.developmentnow.com

  5. Default Re: IIS7, "HTTP Error 503. The service is unavailable", AppPool failing

    On Aug 31, 9:20 pm, Dave Schindler<guy281...@hotmail.com> wrote:
    > David Wang, you are a genius!
    >
    > I had a similar problem with IIS7 after installing ActiveState Perl and trying to add a script map for .pl files.
    >
    > Your tip about the applicationHost.config file did the trick for me. There was an entry in there pointing to Perl.exe. I removed that and IIS worked like new.
    >
    > Thanks!
    >
    > Fromhttp://developmentnow.com/g/59_2007_5_0_0_970292/IIS7-HTTP-Error-503-...
    >
    > Posted via DevelopmentNow.com Groupshttp://www.developmentnow.com



    Thanks.

    If what you removed was installed by ActiveState, then perhaps you
    want to report that bug.

    Or perhaps it was a bug within the IIS7 Compatability layer
    translating the legacy commands. But we won't know what, until proven
    that ActiveState didn't cause the issue itself.

    In any case, the investigation has to start with ActiveState.


    //David
    http://w3-4u.blogspot.com
    http://blogs.msdn.com/David.Wang
    //


  6. Default applicationHost.config file

    Thanks for the help David! Your tip about the applicationHost.config file did the trick for me, as well. I removed all the entries of the botched PHP install and everything is working again.. Thanks!

    Kody Brown
    http://www.wasatchwizard.com/

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 09-25-2007, 02:48 PM
  2. Default web site error "Service Unavailable" for OWA works
    By Application Development in forum Inetserver
    Replies: 8
    Last Post: 07-19-2007, 05:46 AM
  3. "Service Unavailable" after Active Directory setup
    By Application Development in forum Sharepoint
    Replies: 3
    Last Post: 06-27-2007, 09:50 AM
  4. IIS 6.0 - "Service Unavailable" - ISAPI filters do not load
    By Application Development in forum Inetserver
    Replies: 1
    Last Post: 05-16-2007, 05:34 AM
  5. Web Service failure - "Server Application Unavailable"
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 10-03-2006, 09:50 AM