Questions tagged [mod-fcgid]

`mod_fcgid` is a high performance alternative to `mod_cgi` or `mod_cgid`, which starts a sufficient number instances of the `CGI` program to handle concurrent requests, and these programs remain running to handle further incoming requests. It is favored by the `PHP` developers, for example, as a preferred alternative to running `mod_php` in-process, delivering very similar performance.

mod_fcgid is a high performance alternative to mod_cgi or mod_cgid, which starts a sufficient number instances of the CGI program to handle concurrent requests, and these programs remain running to handle further incoming requests. It is favored by the PHP developers, for example, as a preferred alternative to running mod_php in-process, delivering very similar performance.

124 questions
58
votes
18 answers

Connection reset by peer: mod_fcgid: error reading data from FastCGI server

I am having issue on PHP where my app is trying to run a php backup file and suddenly getting HTTP Error 500 Code. I have checked the logs and this what it saying. [Tue Aug 28 14:17:28 2012] [warn] [client x.x.x.x] (104)Connection reset by peer:…
James Wise
  • 1,715
  • 4
  • 16
  • 21
22
votes
3 answers

PHP and mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

This has been asked and answered before https://stackoverflow.com/a/12686252/219116 but, the solution there is not working for me. mod_fcgid config AddHandler fcgid-script .fcgi FcgidIPCDir /var/run/mod_fcgid/ …
Slashterix
  • 1,036
  • 1
  • 10
  • 17
22
votes
8 answers

Premature end of script headers: index.php, mod_fcgid: read data timeout in 61 seconds

I wrote a simple crawling script (in php) at localhost (with 4 variations). All of them worked fine at localhost. But when I made move them to shared hosting, two of them worked others gave internal server error. I looked at error_log and I saw…
Bilal Gultekin
  • 4,831
  • 3
  • 22
  • 27
21
votes
6 answers

Make file extension to be interpreted by PHP

I added this to my .htaccess file: AddHandler fcgid-script .test (I'm using FastCGI / VirtualMin / WebMin) And crated a test.test file with the contents; This results in an internal server error and this message in the error…
user429620
16
votes
1 answer

High CPU mod_fcgid: can't apply process slot

I get the following warning: mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper As soon as this warning appears server CPU raises to 97% - 101% The server gets around 140K pageviews daily. This warning appears…
Rens Tillmann
  • 474
  • 2
  • 7
  • 21
10
votes
1 answer

To many long running Apache processes in READ status without requests after a certain time

I am using /server-status to monitor the Apache processes. When starting they look like…
Buzogany Laszlo
  • 921
  • 11
  • 19
9
votes
1 answer

mod_fcgid: multi‑threaded FastCGI now or in a planned future?

The fact so far According to “mod_fcgi is NOT a replacement for mod_fastcgi” and “Issues with mod_fcgid and multi-threaded FastCGI application”, mod_fcgid, is not designed to expect FastCGI servers to be able to handle multiple requests at once,…
Hibou57
  • 6,870
  • 6
  • 52
  • 56
9
votes
1 answer

ap_pass_brigade failed in handle_request_ipc function

A page is resulting in a 500 error and the log shows this: [Wed Mar 20 11:19:23 2013] [warn] [client 127.0.0.1] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function It is occuring on a lemonstand website,…
Nick Martin
  • 776
  • 1
  • 8
  • 14
8
votes
2 answers

php5 with mod_fcgid results in 500 error - probably wrong permissions

Every time I request a .php file I get the 500 error code. I tried many different file permissions and searched the whole internet (or at least, it felt like this), but i couldn't find anything helpful. (It's not an easy to find suexec error or…
mzimmer
  • 523
  • 2
  • 5
  • 11
7
votes
3 answers

.htaccess redirect index.php to /

I would like to hide the index.php page and just show the domain. Is this possible with .htaccess? RewriteRule ^index\.php/?$ / [L,R=301,NC] Also tried: RewriteEngine On RewriteBase / RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /index.php…
Nikki Wilson
  • 71
  • 1
  • 1
  • 3
6
votes
5 answers

PHP programming seg fault

I've been programming a site using: Zend Framework 1.11.5 (complete MVC) PHP 5.3.6 Apache 2.2.19 CentOS 5.6 i686 virtuozzo on vps cPanel WHM 11.30.1 (build 4) Mysql 5.1.56-log Mysqli API 5.1.56 Suddenly doing a few "SHOW CREATE TABLE" query to…
András Gyömrey
  • 1,770
  • 1
  • 15
  • 36
5
votes
1 answer

fread timeout with 'mod_fcgid: read timeout from pipe'

I have an issue with a URL my application is trying to access timing out. I am trying to catch this timeout and to solve this problem am using this code: $timeout = 120; if(false == $handle = @fsockopen($host, $port, $errno, $errstr,…
Drew
  • 1,687
  • 5
  • 25
  • 46
5
votes
1 answer

PHP error "No input file specified" when calling tinyMCE from a symlink

I use tinyMCE with the PHP compressor. I would like to have it in a single folder, used by all the domains needing it on my server, instead of a copy for each site. However, since I know it's not cross-domains, I thought I could put it in a folder…
Nabab
  • 2,608
  • 1
  • 19
  • 32
5
votes
4 answers

Why does my simple fastCGI Perl script fail?

I'm not of the Perl world, so some of this is new to me. I'm running Ubuntu Hardy LTS with apache2 and mod_fcgid packages installed. I'd like to get MT4 running under fcgid rather than mod-cgi (it seems to run OK with plain-old CGI). I can't seem…
sstrudeau
  • 81
  • 1
  • 1
  • 6
5
votes
1 answer

Apache won't set headers for PHP script

This .htaccess file: ExpiresActive On ExpiresDefault "access plus 4 month" Header merge X-ModHeaders "Yes, it is installed" ... works as expected in my…
Álvaro González
  • 142,137
  • 41
  • 261
  • 360
1
2 3
8 9