- 论坛徽章:
- 0
|
Apache启动和cgi程序的编译都没问题
但是运行的时候就出错
以下是一些信息
高手指点一下吧
winXP
apache2.0.59
mod_fastcgi-2.4.2-AP20.dll
httpd.conf
- LoadModule fastcgi_module modules/mod_fastcgi-2.4.2-AP20.dll
- ...
- <IfModule mod_fastcgi.c>
- ScriptAlias /fcgi-bin/ "D:/Program Files/Apache Group/Apache2/fcgi-bin/"
- FastCgiServer fcgi-bin/echo.exe -processes 2
- </IfModule>
复制代码
echo.c
- #include "fcgi_stdio.h"
- #include <stdlib.h>
- void main(void)
- {
- int count = 0;
- while(FCGI_Accept() >= 0)
- printf("Content-type: text/html\r\n"
- "\r\n"
- "<title>FastCGI Hello!</title>"
- "<h1>FastCGI Hello!</h1>"
- "Request number %d running on host <i>%s</i>\n",
- ++count, getenv("SERVER_NAME"));
- }
复制代码
apache error.log
- [Tue Feb 27 17:04:56 2007] [notice] mod_python: Creating 8 session mutexes based on 0 max processes and 250 max threads.
- [Tue Feb 27 17:04:56 2007] [notice] Apache/2.0.59 (Win32) mod_python/3.2.8 Python/2.4.4 mod_fastcgi/2.4.2 configured -- resuming normal operations
- [Tue Feb 27 17:04:56 2007] [notice] Server built: Jul 27 2006 15:55:03
- [Tue Feb 27 17:04:56 2007] [notice] Parent: Created child process 4000
- [Tue Feb 27 17:04:56 2007] [notice] mod_python: Creating 8 session mutexes based on 0 max processes and 250 max threads.
- [Tue Feb 27 17:04:56 2007] [notice] Child 4000: Child process is running
- [Tue Feb 27 17:04:56 2007] [notice] Child 4000: Acquired the start mutex.
- [Tue Feb 27 17:04:56 2007] [notice] Child 4000: Starting 250 worker threads.
- [Tue Feb 27 17:04:56 2007] [notice] FastCGI: process manager initialized
- [Tue Feb 27 17:04:56 2007] [warn] FastCGI: server "D:/Program Files/Apache Group/Apache2/fcgi-bin/echo.exe" started (pid 2004)
- [Tue Feb 27 17:04:56 2007] [warn] FastCGI: server "D:/Program Files/Apache Group/Apache2/fcgi-bin/echo.exe" (pid 2004) terminated with exit with status '-1073741515'
- [Tue Feb 27 17:04:57 2007] [warn] FastCGI: server "D:/Program Files/Apache Group/Apache2/fcgi-bin/echo.exe" started (pid 3948)
- [Tue Feb 27 17:04:57 2007] [warn] FastCGI: server "D:/Program Files/Apache Group/Apache2/fcgi-bin/echo.exe" (pid 3948) terminated with exit with status '-1073741515'
- [Tue Feb 27 17:05:02 2007] [warn] FastCGI: server "D:/Program Files/Apache Group/Apache2/fcgi-bin/echo.exe" restarted (pid 3092)
- [Tue Feb 27 17:05:02 2007] [warn] FastCGI: server "D:/Program Files/Apache Group/Apache2/fcgi-bin/echo.exe" (pid 3092) terminated with exit with status '-1073741515'
- [Tue Feb 27 17:05:03 2007] [error] [client 127.0.0.1] attempt to invoke directory as script: D:/Program Files/Apache Group/Apache2/fcgi-bin/
- [Tue Feb 27 17:05:07 2007] [warn] FastCGI: server "D:/Program Files/Apache Group/Apache2/fcgi-bin/echo.exe" restarted (pid 368)
- [Tue Feb 27 17:05:07 2007] [warn] FastCGI: server "D:/Program Files/Apache Group/Apache2/fcgi-bin/echo.exe" (pid 368) terminated with exit with status '-1073741515'
- [Tue Feb 27 17:05:07 2007] [warn] FastCGI: server "D:/Program Files/Apache Group/Apache2/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 Feb 27 17:05:21 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
- [Tue Feb 27 17:05:21 2007] [notice] Child 4000: Exit event signaled. Child process is ending.
- [Tue Feb 27 17:05:22 2007] [warn] FastCGI: server "D:/Program Files/Apache Group/Apache2/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 Feb 27 17:05:22 2007] [warn] FastCGI: server "D:/Program Files/Apache Group/Apache2/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
- ...
复制代码 |
|