Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

/proc/kallsyms format, sqldatasource dal, wwwxxxenden, convert raid5 to raid 10 mdadm, apache force chunked, nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas

Links

XODOX
Impressum

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

Posted on 2007-05-15 03:13:18 by shodson

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.

Report this message

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

Posted on 2007-05-15 12:23:29 by David Wang

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/archive/2006/06/24/HOWTO-In stall-and-Run-PHP-on-IIS7-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
//

Report this message

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

Posted on 2007-05-15 19:58:26 by shodson

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!

Report this message

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

Posted on 2007-09-01 06:20:19 by Dave Schindler

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_5_0_0_970292/IIS7-HTTP-E rror-503-The-service-is-unavailable-AppPool-failing.htm

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

Report this message

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

Posted on 2007-09-02 10:51:48 by David Wang

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-HT TP-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
//

Report this message

#6: applicationHost.config file

Posted on 2008-04-23 09:29:19 by unknown

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/

Report this message