httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50621] New: Using FcgidWrapper in .htaccess causes new processes on every request
Date Wed, 19 Jan 2011 22:07:39 GMT

           Summary: Using FcgidWrapper in .htaccess causes new processes
                    on every request
           Product: Apache httpd-2
           Version: 2.2.14
          Platform: Macintosh
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_fcgid

If you set FcgidWrapper in .htaccess on every HTTP request to a .php file a new
php-fcgid process is spawned. If I set FcgidWrapper in the httpd.conf under a
virtual host this does not happened (the previous process is used). Eventually
this maxed out the number of processes on my machine (using ps outputs
"resource temporarily unavailable").

(NOTE: I'm currently using Apache 2.2.14 because I was unable to build anything
after that w/ mod_fcgid due to bug #50112 (hasn't been resolved))

My configuration options in httpd.conf for mod_fcgid are:

FcgidIOTimeout 300
FcgidIdleTimeout 300
FcgidMaxProcesses 20
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS       1000
FcgidMaxRequestsPerProcess     1000

<Files ~ (\.php)>
Options +ExecCGI

And in my .htaccess file I have:

AddHandler fcgid-script .php
FcgidWrapper /Server/software/php53/bin/php-cgi .php

I tried moving "AddHandler" to httpd.conf with just "FcgidWrapper" and it still
happened. I'm using mod_fcgid 2.3.5.

I don't think this is dependent on the Mac platform. I'm pretty sure this will
happen on the Linux platform as well (but I haven't tested).

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message