Welcome, Guest
Please Login or Register.
Lost Password?
php program fails, log says Broken pipe: mod_fcgid (1 viewing)
Post Reply

TOPIC: php program fails, log says Broken pipe: mod_fcgid

#6087
RickBeall (User)
Posts: 71
graphgraph
php program fails, log says Broken pipe: mod_fcgid 2007/07/14 18:42  
Hi Joe,
I've installed a php application on a Virtualmin server and part of the page displays and it stops rendering content and Apache displays: "The server encountered an internal error or misconfiguration and was unable to complete your request."

When I look in the Apache error log I see:

"mod_fcgid: Read data error, fastcgi server has close connection
(32)Broken pipe: mod_fcgid: ap_pass_brigade failed in handle_request function"

I've included further information below. This is a new virtualmin installation (I've been exercising it for 2 weeks.) and now I'm trying to go live.

Any help would be greatly appreciated.

Thanks,
Rick

phpinfo();

PHP Version 4.3.9
Server API CGI/FastCGI

Apache error logs
mod_fcgid: Read data error, fastcgi server has close connection
(32)Broken pipe: mod_fcgid: ap_pass_brigade failed in handle_request function

Operating system CentOS Linux 4.5
Apache version 2.0.53
Webmin version 1.350
Virtualmin version 3.43

(True) FCGId (run as virtual server owner)
  The administrator has disabled public write access.
#6088
RickBeall (User)
Posts: 71
graphgraph
Re:php program fails, log says Broken pipe: mod_fc 2007/07/14 19:24  
I have a test domain running with no problem. It is a php application that uses a mysql database. There is not much data in the test application. In my real domain, there is quite a bit more mysql data, and longer web pages with more images to display. I wonder if something is timing out?
  The administrator has disabled public write access.
#6093
Joe (Admin)
Posts: 4082
graph
Re:php program fails, log says Broken pipe: mod_fc 2007/07/15 00:52  
Hey Rick,

This is probably the default PHP memory limit kicking in, but the error doesn't match what I was expect to see. But it's maybe a place to start.

Edit the PHP 4 configuration (you can either use the Webmin PHP ini module, or edit the file directly in /home/domain/etc/php4/php.ini), and set the memory_limit to 32M.

I ran into the 8 MB limit for the forum here at Virtualmin.com once data was loaded into it (while everything else worked fine, including the empty forum). At least in my case, the symptoms were identical...though I had a different error I think that did mention memory.
  The administrator has disabled public write access.
#6094
RickBeall (User)
Posts: 71
graphgraph
Re:php program fails, log says Broken pipe: mod_fc 2007/07/15 01:05  
I just tried it. No luck. Any other ideas?
  The administrator has disabled public write access.
#6095
RickBeall (User)
Posts: 71
graphgraph
Re:php program fails, log says Broken pipe: mod_fc 2007/07/15 01:14  
This is all the detail from the error log.

[warn] mod_fcgid: Read data error, fastcgi server has close connection
[warn] (32)Broken pipe: mod_fcgid: ap_pass_brigade failed in handle_request function
  The administrator has disabled public write access.
#6096
RickBeall (User)
Posts: 71
graphgraph
Re:php program fails, log says Broken pipe: mod_fc 2007/07/15 01:32  
The problem is only happening on one particular page on the web site. Its a large page, maybe the largest. I'm going to start picking apart the code.
  The administrator has disabled public write access.
#6098
RickBeall (User)
Posts: 71
graphgraph
Re:php program fails, log says Broken pipe: mod_fc 2007/07/15 08:22  
Well, I removed a call to a php application that existed, but for which had not yet installed the mysql tables, and the problem went away. In a day or two I'll be installing that database and uncommenting the call. Hopefully everything will continue to run smoothly.

Thanks for using up some valuable brain cycles and thinking about this Joe. I appreciate it. It got me thinking in a more practical way.
  The administrator has disabled public write access.
#16044
kato (User)
Posts: 120
graphgraph
Re:php program fails, log says Broken pipe: mod_fcgid 2008/08/31 18:52  
Any luck figuring out the root cause of this? I just encountered it :(
Operating system CentOS Linux 4.6
Webmin version 1.420
Virtualmin version 3.60 (Pro)
Kernel and CPU Linux 2.6.9-67.0.22.ELsmp on i686
  The administrator has disabled public write access.
#16045
kato (User)
Posts: 120
graphgraph
Re:php program fails, log says Broken pipe: mod_fcgid 2008/08/31 22:50  
In my case, it was a recursive function call; looks like any php out of memory error causes this.
Operating system CentOS Linux 4.6
Webmin version 1.420
Virtualmin version 3.60 (Pro)
Kernel and CPU Linux 2.6.9-67.0.22.ELsmp on i686
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.