logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_fcgid updated to version 2.1
Author
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3057
Location: Hilversum, NL, EU

PostPosted: Sat 17 Feb '07 14:10    Post subject: mod_fcgid updated to version 2.1 Reply with quote

Version 2.1 of the popular FastCGI module mod_fcgid is now avaliable at the download page.

FastCGI is a fast, open, and secure Web server interface that solves the performance problems inherent in CGI, without introducing the overhead and complexity of APIs. This solves the CGI performance problem of creating new processes for each request, for example the perfomance with PHP is on par when you run PHP as module. Also a buggy FastCGI application cannot crash or corrupt the core server or other applications. And a malicious FastCGI application cannot steal any secrets (such as session keys for encryption) from the Web server.
Back to top
Paul Sehorne



Joined: 22 Feb 2007
Posts: 1

PostPosted: Thu 22 Feb '07 7:36    Post subject: FCGID failng "can't apply process slot" - can you Reply with quote

Am I suppose to be running some kind of FCGID 'client' on the Apache server?

FCGID fails with messages in Apache error.log:
[warn] mod_fcgid: can't apply process slot

Stopping the Apache service results in addition message written to the Apache error.log many, many times:
[Wed Feb 21 23:24:59 2007] [notice] mod_fcgid: call C:/Programming/MyRubyPrograms/hva_members/public/dispatch.fcgi with wrapper C:/Programming/MyRubyPrograms/hva_members/public/dispatch.fcgi
[Wed Feb 21 23:24:59 2007] [error] (OS 193)%1 is not a valid Win32 application. : mod_fcgid: can't create wrapper process for C:/Programming/MyRubyPrograms/hva_members/public/dispatch.fcgi
[Wed Feb 21 23:24:59 2007] [warn] (OS 193)%1 is not a valid Win32 application. : mod_fcgid: spawn process C:/Programming/MyRubyPrograms/hva_members/public/dispatch.fcgi error



Environment:
Windows 2000 with latest fixes
Visual C++ 2005 Redistribution SP1 (I do not have VC++ itself installed)
Apache 2.2.4
Ruby 185-21
Rails 1.2.2
My Windows userid has Administrator privileges

========== httpd.conf ===============
#right after LoadModule rewrite_module modules/mod_rewrite.so
LoadModule fcgid_module modules/mod_fcgid.so
# following all the LoadModule lines
SocketPath /tmp/fcgidsock
SharememPath /tmp/fcgidshm
DefaultInitEnv RAILS_ENV development


======== VirtualHost =================
<VirtualHost *:*>
ServerName www.hva.com
ServerAdmin webmaster@sehorne.org
#ServerAlias hva.com
ErrorLog logs/hva-error_log
CustomLog logs/hva-access_log common
FCGIWrapper 'C:/Programming/MyRubyPrograms/hva_members/public/dispatch.fcgi' .fcgi
AccessFileName .htaccess
DocumentRoot C:/Programming/MyRubyPrograms/hva_members/public
<Directory C:/Programming/MyRubyPrograms/hva_members/public>
Options +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
allow from all
</Directory>
AddDefaultCharset utf-8
ErrorDocument 500 /500.html
ErrorDocument 404 /404.html
</VirtualHost>

======== .htaccess ===========
# General Apache options
#AddHandler fastcgi-script .fcgi
AddHandler fcgid-script .fcgi
AddHandler cgi-script .cgi


Options +FollowSymLinks +ExecCGI

RewriteEngine On

RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
======== end of .htaccess ===========
Back to top


Reply to topic   Topic: mod_fcgid updated to version 2.1 View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules