httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
https://issues.apache.org/bugzilla/show_bug.cgi?id=50621

           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
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: luke@cywh.com


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
</Files>


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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message