IfModule / fastcgi question from newbie

Problems with the Windows version of XAMPP, questions, comments, and anything related.

IfModule / fastcgi question from newbie

Postby OhioTech » 26. February 2007 19:12

Running PHP 4.4.4

Following instructions to install fastcgi:
- Downloaded mod_fastcgi-2.4.2-AP20.dll
- Copied to my c:\Program Files\xampp\apache\modules
- Renamed to mod_fastcgi.so

Added these three lines at end of httpd file:

<IfModule !mod_fastcgi.c>
LoadModule fastcgi_module modules/mod_fastcgi.so
</IfModule>

Stop/start Apache,
The "Running" status stays on for only a second.

Q1. Why does <IfModule look for extension "c"? Is the "so" file changed
to "c" when it's loaded?

Q2. Any ideas why Apache does not stay running?


Thanks
OhioTech
 
Posts: 5
Joined: 29. November 2006 15:41

Postby Wiedmann » 26. February 2007 20:22

- Downloaded mod_fastcgi-2.4.2-AP20.dll
Any ideas why Apache does not stay running?

I guess this is for Apache 2.0.x and not Apache 2.2.x.

Why does <IfModule look for extension "c"? Is the "so" file changed
to "c" when it's loaded?

Just look in the Apache manual for the "IfModule" description .. ;-)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby OhioTech » 27. February 2007 02:30

The Apache manual "<IfModule> Directive" says:
"The <IfModule test>...</IfModule> section is used to mark directives
that are conditional on the presence of a specific module. The
directives within an <IfModule> section are only processed if the test
is true. If test is false, everything between the start and end markers
is ignored.

The test in the <IfModule> section directive can be one of two forms:
module
!module
#1) In the former case, the directives between the start and end
markers are only processed if the module named module is included in
Apache -- either compiled in or dynamically loaded using LoadModule.
The second format reverses the test, and only processes the directives
if module is not included.

#2) The module argument can be either the module identifier or the file
name of the module, at the time it was compiled. For example,
rewrite_module is the identifier and mod_rewrite.c is the file name."

(I added the paragraph numbers)
>>>>>>

I'm curious about the file names here.

The original file name was "mod_fastcgi-2.4.2-AP20.dll".
I renamed it "mod_fastcgi.so" to be in directory /modules.
It's called "mod_fastcgi.c" and "fastcgi_module" in the directive.
Four names for the same file?

Regarding paragraph #1 "included in Apache -- either compiled in or
dynamically loaded using LoadModule":
>>In this case, the fastcgi module is not compiled in Apache; it is to
be loaded.

Regarding paragraph #2 "the file name of the module, at the time it was
compiled":
>>When was it compiled?
>>At what point does it become mod_fastcgi.c?
>>Isn't the original file "mod_fastcgi-2.4.2-AP20.dll" already a
compiled object?
OhioTech
 
Posts: 5
Joined: 29. November 2006 15:41


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 129 guests