Fastcgi, Apache2 and Windows XP

Joseph Padfield <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hi,

I have been trying to get a windows system up and running with apache2 
and fastcgi and I have been having some trouble.

I have setup a fully patched Windows XP system and hace installed the 
following:
 >    apache_2.0.54-win32-x86-no_ssl.msi
 >    mod_fastcgi-SNAP-0404142202.tar.gz (unpacked and installed into 
the apache modules directory)

Then added the following lines to httpd.conf:

 >    LoadModule fastcgi_module modules\mod_fastcgi-SNAP-0404142202-AP2.dll
 >   
 >    # Create a directory for the scripts
 >    ScriptAlias /fcgi-bin "C:/Program Files/Apache 
Group/Apache2/htdocs/fcgi-bin"
 >    AddHandler fastcgi-script fcg fcgi fpl exe
 >   
 >    <Directory "C:/Program Files/Apache Group/Apache2/htdocs/fcgi-bin">
 >        AllowOverride None
 >        Options ExecCGI   
 >        SetHandler fastcgi-script
 >        Options None
 >        Order allow,deny
 >        Allow from all
 >    </Directory>

Appache then starts up fine and indicates that the fastcgi module has 
been installed fine.

I then installed the default, (plus all devel group) cygwin setup.
I then added the cygwin bin directory to the windows path.

I then downloaded:
 >    fcgi-2.4.0.tar.gz

I unpacked this within the cygwin environment, entered the fcgi-2.4.0 
directory and then ran:

 >    ./configure
 >    make

I then copied the echo.exe file from the examples directory and pasted 
it into my apache fcgi-bin directory.
I then opened a browser and tried to open the page:
 >    http://localhost/fcgi-bin/echo.exe

The browser tried for a few seconds then returned an "Internal Server Error"
Below is an extract from the apache error.log

 [Tue Apr 19 12:59:16 2005] [notice] Apache/2.0.54 (Win32) 
mod_fastcgi/2.4.3 configured -- resuming normal operations
[Tue Apr 19 12:59:16 2005] [notice] Server built: Apr 16 2005 14:25:31
[Tue Apr 19 12:59:16 2005] [notice] Parent: Created child process 3712
[Tue Apr 19 12:59:16 2005] [notice] Child 3712: Child process is running
[Tue Apr 19 12:59:16 2005] [info] Parent: Duplicating socket 184 and 
sending it to child process 3712
[Tue Apr 19 12:59:16 2005] [notice] FastCGI: process manager initialized
[Tue Apr 19 12:59:16 2005] [notice] Child 3712: Acquired the start mutex.
[Tue Apr 19 12:59:16 2005] [notice] Child 3712: Starting 250 worker threads.
[Tue Apr 19 12:59:20 2005] [warn] FastCGI: (dynamic) server "C:/Program 
Files/Apache Group/Apache2/htdocs/fcgi-bin/echo.exe" started (pid 1068)
[Tue Apr 19 12:59:20 2005] [warn] FastCGI: (dynamic) server "C:/Program 
Files/Apache Group/Apache2/htdocs/fcgi-bin/echo.exe" (pid 1068) 
terminated with exit with status '-1073741515'
[Tue Apr 19 12:59:25 2005] [warn] FastCGI: (dynamic) server "C:/Program 
Files/Apache Group/Apache2/htdocs/fcgi-bin/echo.exe" restarted (pid 3080)
[Tue Apr 19 12:59:25 2005] [error] [client 127.0.0.1] (OS 109)The pipe 
has been ended.  : FastCGI: comm with server "C:/Program Files/Apache 
Group/Apache2/htdocs/fcgi-bin/echo.exe" aborted: GetOverlappedResult() 
failed
[Tue Apr 19 12:59:25 2005] [error] [client 127.0.0.1] FastCGI: 
incomplete headers (0 bytes) received from server "C:/Program 
Files/Apache Group/Apache2/htdocs/fcgi-bin/echo.exe"
[Tue Apr 19 12:59:25 2005] [warn] FastCGI: (dynamic) server "C:/Program 
Files/Apache Group/Apache2/htdocs/fcgi-bin/echo.exe" (pid 3080) 
terminated with exit with status '-1073741515'
[Tue Apr 19 12:59:30 2005] [warn] FastCGI: (dynamic) server "C:/Program 
Files/Apache Group/Apache2/htdocs/fcgi-bin/echo.exe" restarted (pid 2096)
[Tue Apr 19 12:59:30 2005] [warn] FastCGI: (dynamic) server "C:/Program 
Files/Apache Group/Apache2/htdocs/fcgi-bin/echo.exe" (pid 2096) 
terminated with exit with status '-1073741515'
[Tue Apr 19 12:59:35 2005] [warn] FastCGI: (dynamic) server "C:/Program 
Files/Apache Group/Apache2/htdocs/fcgi-bin/echo.exe" restarted (pid 3488)
[Tue Apr 19 12:59:35 2005] [warn] FastCGI: (dynamic) server "C:/Program 
Files/Apache Group/Apache2/htdocs/fcgi-bin/echo.exe" (pid 3488) 
terminated with exit with status '-1073741515'
[Tue Apr 19 12:59:35 2005] [warn] FastCGI: (dynamic) server "C:/Program 
Files/Apache Group/Apache2/htdocs/fcgi-bin/echo.exe" has failed to 
remain running for 30 seconds given 3 attempts, its restart interval has 
been backed off to 600 seconds
[Tue Apr 19 12:59:36 2005] [warn] FastCGI: (dynamic) server "C:/Program 
Files/Apache Group/Apache2/htdocs/fcgi-bin/echo.exe" has failed to 
remain running for 30 seconds given 3 attempts, its restart interval has 
been backed off to 600 seconds
[Tue Apr 19 12:59:37 2005] [warn] FastCGI: (dynamic) server "C:/Program 
Files/Apache Group/Apache2/htdocs/fcgi-bin/echo.exe" has failed to 
remain running for 30 seconds given 3 attempts, its restart interval has 
been backed off to 600 seconds
[Tue Apr 19 12:59:38 2005] [warn] FastCGI: (dynamic) server "C:/Program 
Files/Apache Group/Apache2/htdocs/fcgi-bin/echo.exe" has failed to 
remain running for 30 seconds given 3 attempts, its restart interval has 
been backed off to 600 seconds

I am hoping to get a particular image server, 
(http://iipimage.sourceforge.net/), up and running on a windows machine, 
I have it running well on a linux machine.

The echo.exe runs fine in a windows command window and returns a pile of 
system info.

I am hoping I have just missed some important step to get the system 
working properly, can any of you suggest what I should try next ?

Thanks for your time.

Joe Padfield


-- 
Joseph Padfield, HP Research Fellow [email protected],
+44 (0)20 7747 2553: Scientific Department, The National Gallery, 
Trafalgar Square, London, WC2N 5DN

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.