FastCGI :: Aborted: (first Read) Idle Timeout (30 Sec)

May 21, 2008

I've got a server with FastCGI that at random produces 500 internal server errors. In the specific account the errors are as follows in the error_log:

[Wed May 21 12:01:29 2008] [error] [client 1.2.3.4] FastCGI: comm with (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" aborted: (first read) idle timeout (30 sec)
[Wed May 21 12:01:29 2008] [error] [client 1.2.3.4] FastCGI: incomplete headers (0 bytes) received from server "/usr/local/apache2/htdocs/user/php-wrapper"
As you can see this unfortunately does not tell me anything.

Now viewing the apache error_log I see this

Code:
[Wed May 21 12:51:11 2008] [warn] FastCGI: scheduled the restart of the last (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" process: reached dynamicMaxClassProcs (10)
[Wed May 21 12:51:11 2008] [warn] FastCGI: (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" (uid 514, gid 515) restarted (pid 20510)
[Wed May 21 12:52:00 2008] [warn] FastCGI: (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" (pid 20510) termination signaled
[Wed May 21 12:52:00 2008] [warn] FastCGI: (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" (pid 20510) terminated by calling exit with status '0'
[Wed May 21 12:57:02 2008] [warn] FastCGI: (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" (pid 20501) termination signaled
[Wed May 21 12:57:02 2008] [warn] FastCGI: (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" (pid 20501) terminated by calling exit with status '0'
[Wed May 21 13:02:03 2008] [warn] FastCGI: (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" (pid 20491) termination signaled
[Wed May 21 13:02:03 2008] [warn] FastCGI: (dynamic) server "/usr/local/apache2/htdocs/user/php-wrapper" (pid 20491) terminated by calling exit with status '0'
All warnings so I'm assuming these don't mean anything.

Here's the php-wrapper:

Code:
#!/bin/sh
PHPRC=/usr/local/lib
export PHPRC
PHP_FCGI_CHILDREN=8
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=500
export PHP_FCGI_MAX_REQUESTS
exec /usr/local/bin/php-cgi

Not a particularly well setup system for users and such but it worked for the user.

The software versions are as follows:

Apache 2.2.8 with Suexec on the FCGI
FastCGI (Latest stable and also tried a CVS version)
PHP 5.2.6
64 bit system

how to go about debugging this?

View 2 Replies


ADVERTISEMENT

Plesk 11.x / Linux :: Searching Large Mailbox In Horde / Roundcube Causes Read Data Timeout

Jun 26, 2014

This is applies to both Horde and roundcube webmail client software;

Using Plesk 11.5.30 with Horde 5.1.5 or roundcube 0.9.5 on CentOS Linux release 6.5 (Final).

We have seen this behavior occur on multiple servers.

Clients experienced slow to no response after executing a search, which eventually results in a failed to communicate with the server-error in the webmail client.

The Apache server log shows script time-out errors when searching larger mailboxes (i.e. larger than 950 MB), this does not happen on smaller mailboxes.

We have seen errors like the following in the Apache server error log with Horde (personal data like IP-address and domain name are x'ed out):

[Thu Jun 19 14:55:06 2014] [warn] [client xx.xxx.xxx.xxx] mod_fcgid: read data timeout in 45 seconds, referer: http://webmail.xxxxxxx.com/imp/dynamic.php?page=mailbox
[Thu Jun 19 14:55:06 2014] [error] [client xx.xxx.xxx.xxx] Premature end of script headers: ajax.php, referer: http://webmail.xxxxxxx.com/imp/dynamic.php?page=mailbox

And with Roundcube:

[Tue Jun 17 13:02:04 2014] [warn] [client xx.xxx.xxx.xxx] mod_fcgid: read data timeout in 45 seconds, referer: https://webmail.xxxxxxxxxxx.com/?_t...d=19445&_mbox=INBOX&_caps=pdf=0,flash=1,tif=0
[Tue Jun 17 13:02:04 2014] [error] [client xx.xxx.xxx.xxx] Premature end of script headers: index.php, referer: https://webmail.xxxxxxxxxxx.com/?_t...d=19445&_mbox=INBOX&_caps=pdf=0,flash=1,tif=0

Steps to reproduce:

- use a large mailbox (950 MB or higher)
- login to the webmail (Horde or roundcube)
- do a search in the search field on the top right
- the time-out error should appear in the server Apache error log (after at least 45 seconds)

This seems like an inefficiency or bug in the search query that searches the user's mailbox. Is there any other way we can prevent this issue and the error messages?

View 4 Replies View Related

Microsoft FastCGI :: The FastCGI Handler Was Unable To Process The Request

Jan 6, 2008

I installed FastCGI and configured it via fcgiconfig.js using this command

cscript fcgiconfig.js -add -section:"PHP" -extension:php -path:"C:PHPphp-cgi.exe"
It configured fcgiext.ini and added the .php extension to the sites and what not.

When accessing a php script, I get the following error though:

FastCGI Error

The FastCGI Handler was unable to process the request.
Error Details:The FastCGI process exited unexpectedly
Error Number: -2147467259 (0x80004005).
Error Description: Unspecified error
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
I did not do anything special with the PHP. It is the zip 5.2.5 from the site. I configured php.ini and move it to c:/windows. I granted IUSR permission on php-cgi.exe

Am I missing something? I followed the guide here

Windows 2003 / IIS6 / PHP 5.2.5

View 3 Replies View Related

450 Transfer Aborted. Link To File Server Lost

Dec 29, 2007

I seem to keep getting this error whenever I try to uploading something thats too large.

It transfers fine for a few mins, then it stalls and eventually I get this error message.

Small files are fine since they don't take long to transfer, it just seems that I can't have a file transferring for too long.

I can actually get the damn file through but since I keep getting that error, I need to keep manually clicking on the transfer button. So it takes about 20 tries before I can finish a 30MB file. And I have a lot of files to transfer so thats very troublesome.

Does anyone know what the problem might be? I tried turning off the firewall and opening ports on my router but it still doesn't work. Using Cute FTP.

View 2 Replies View Related

CentOS 6.5 - Aborted Migration Resulted In Apache Configuration Error

Apr 12, 2015

OS CentOS 6.5
Panel version 11.5.30 Update #50

Tried migrating a site from a much older server. The migration never completed, so it was aborted and all the migration files deleted. Now, I'm getting the following error on the Plesk Home page:

=================
New configuration files for the Apache web server were not created due to the errors in configuration templates: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 7 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 319 of /etc/httpd/conf/plesk.conf.d/roundcube.conf: Could not open configuration file /etc/httpd/conf/plesk.conf.d/webmails/roundcube/xxxxxxxxxxx.com_webmail.conf: No such file or directory . The error message containing the detailed error descriptions was sent to you by e-mail. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.
=================

Clicking either of the 2 available options (links) does not resolve the issue. How to clear this error?

View 2 Replies View Related

Sending/receiving Emails :: Requested Action Aborted: Error In Processing

Jul 11, 2008

Iam having a problem in sending/receiving emails .

When i try to send email from c-panel thru SquirrelMail i get this error msg :

ERROR:
Message not sent. Server replied:
Requested action aborted: error in processing
451 Temporary local problem - please try later

There is another thing also happens when i type /scripts/fixcommonproblems from SSH

Fixing permissions on cgi scripts.....Scanning suexec_log...Done
Done
Shutting down Mailman's master qrunner
Processing cools4u2
/bin/pwd: failed to stat `.': Permission denied
Processing videoco .....

View 2 Replies View Related

97% Idle, So What Causing Load?

Jun 29, 2008

Can someone figure out by the screenshot, if my CPU is really
97% iddle, and what can be causing these average load numbers?

View 14 Replies View Related

16-40+ Load, Yet 90% Of CPU Is Idle (and) 0.00 IO Waits.

Jan 3, 2007

I have a really challanging task of knowing why and host to fix the situation
where at most times the CPU is totally idle and same for IO activity, yet the
load at most times is 16-40+.

For instance at time of writing this: The load is 16 now and linux says:

avg-cpu: %user %nice %sys %iowait %idle
0.49 0.40 0.90 0.00 98.20

(That's a whopping 98.20 idle state!)

How could that possibly be? And could you wonderful folks attempt to offer
me advice on how to find out why load is so high yet almost totally idle activity.

If you need various commands for me to run for you to see more info, let
me know.

View 1 Replies View Related

16-40+ Load, Yet 90% Of CPU Is Idle (and) 0.00 IO Waits. What Could It Be

Jan 3, 2007

I have a really challanging task of knowing why and host to fix the situation
where at most times the CPU is totally idle and same for IO activity, yet the
load at most times is 16-40+.

For instance at time of writing this: The load is 16 now and linux says:

avg-cpu: %user %nice %sys %iowait %idle
0.49 0.40 0.90 0.00 98.20

(That's a whopping 98.20 idle state!)

How could that possibly be? And could you wonderful folks attempt to offer
me advice on how to find out why load is so high yet almost totally idle activity.

If you need various commands for me to run, let me know.

If there's also any ADMINS (with good status) that are willing to look at this and
think they can figure out this case, let me know. I'll gladly pay.

View 8 Replies View Related

The Timeout SpeciMod_sec: The Timeout Specified Has Expired [severity "EMERGENCY"]

Aug 6, 2007

at my logs, i can see this timeout error caused my mod_security at my rhes 4 server.


Code:
mod_security-message: Access denied with code 403. Error reading request body, error code 70007: The timeout specified has expired [severity "EMERGENCY"]

I didnt specify any mod sec rule about "timeout", what timeout is this about?

View 3 Replies View Related

Windows Hosting With IMAP Idle / Exchange

Apr 29, 2008

We've been frantically looking to move from this company called Media Temple for our staging server / email needs. Our application / corporate servers are hosted with The Planet.

Any one have any suggestions for a shared hosting provider between the regular $10-$20 / month range, having the following things:

Windows with .NET 2.0/3.5 and AJAX installed
At least 5GB storage
IMAP email with IDLE support or Exchange email (will pay more)
Ability to host at least 10 domains
Minimalist Control panel and Webmail preferred

View 8 Replies View Related

High Percantage Idle Usage On Top Funtion

May 3, 2008

The idle usage is too high than before. The top process shown as below:

top - 15:56:59 up 17:56, 2 users, load average: 1.93, 2.08, 1.92
Tasks: 163 total, 1 running, 161 sleeping, 0 stopped, 1 zombie
Cpu(s): 4.8% us, 1.5% sy, 0.0% ni, 93.7% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 2066484k total, 1945776k used, 120708k free, 100224k buffers
Swap: 2048276k total, 160k used, 2048116k free, 1344336k cached

PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
29207 apache 15 0 4 0:01.49 1.0 40388 20m 3508 S httpd
28247 mysql 15 0 2 7:55.06 4.7 484m 94m 3204 S mysqld
30778 apache 17 0 1 0:00.23 0.0 0 0 0 Z httpd <defunct>
28454 root 16 0 1 0:03.85 0.1 3056 1088 780 R top
29889 apache 15 0 0 0:00.79 0.8 34744 16m 3216 S httpd
30454 apache 15 0 0 0:00.57 1.0 40268 19m 3268 S httpd
30784 apache 15 0 0 0:00.13 0.8 34860 15m 2688 S httpd
30859 apache 15 0 0 0:00.14 0.8 34740 16m 3084 S httpd
30888 apache 15 0 0 0:00.07 0.8 35020 15m 2520 S httpd
1 root 16 0 0 0:00.51 0.0 2372 548 468 S init
2 root RT 0 0 0:00.22 0.0 0 0 0 S migration/0
3 root 34 19 0 0:00.01 0.0 0 0 0 S ksoftirqd/0
4 root RT 0 0 0:00.18 0.0 0 0 0 S migration/1
5 root 34 19 0 0:00.00 0.0 0 0 0 S ksoftirqd/1
6 root 5 -10 0 0:00.18 0.0 0 0 0 S events/0
7 root 5 -10 0 0:00.14 0.0 0 0 0 S events/1

what may be problem? Before this problem start, Apache web server stop itself.

When i restart it again, i saw this problem.

i have 264 domain on my server. And max visit at a time is 200-250.

View 14 Replies View Related

Plesk 12.x / Linux :: Browsing Using File Manager Or Clicking On Domains Or Sitting Idle For Like 15 Seconds

Oct 24, 2014

It seems that since my latest update of 12.0.18. Now everytime I login to the Admin interface of plesk. I am prompted to relogin several times when browsing using file manager or clicking on domains or sitting idle for like 15 seconds.

It can do this up to 5 times in a 5 minute period or while not even being idle.

View 9 Replies View Related

Php Fastcgi

Jul 1, 2007

I already have php successfully compiled as apache modules but not the fastCGI version, i just trying to compile with the following setting, but weird, could not get the php-cgi binary out of it, only the apache module :

./configure --prefix=/usr/local/apache2/php --with-config-file-path=/usr/local/apache2/php --enable-wddx --enable-trans-sid --enable-dio --enable-sysvsem --enable-mbstring --enable-ftp --enable-versioning --enable-force-cgi-redirect --enable-so --enable-inline-optimization --enable-bcmath --enable-calendar --enable-memory-limit --enable-sockets --enable-track-vars --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib=/usr --with-xmlrpcb --with-gettext --with-xml --with-dom --with-dom-xslt --with-dom-exslt --with-openssl --with-bz2 --with-jpeg-dir=/usr --with-png-dir=/usr --with-iconv=/usr/local --with-curl --with-mysql-dir=/usr/local/mysql --with-pear --with-readline --with-gd --with-freetype2=/usr/include/freetype2/freetype --with-freetype-dir --enable-gd-imgstrttf --enable-gd-native-tt --enable-fastcgi --disable-debug

View 2 Replies View Related

PHP + IIS + FastCGI

May 23, 2007

I was wondering whether anyone can help me, I'm having some major performance problems running PHP on IIS using Shane Caraveo's php_fcgi.dll

PHP: 5.1.1.
IIS: 6

Basically I'm getting to the point where the isapi requests jump rapidly to 400+ requests from a meagre 2 -5 requests. Given the high number of requests this is essentially bringing the server to a standstill.

Does anyone have any ideas how I can begin getting to the bottom of this either through network monitoring or application debugging?

View 0 Replies View Related

Fastcgi

Sep 6, 2007

installing PHP fastcgi on my Centos VPS. I have already Googled for this and tried most of the tutorials but nothing seems to work.

I have already compiled PHP with --enabled-fastcgi. What I ca't figure out is what to put in my .htaccess file.

Almost every tutorial on this compes up with a different way and none of these seem to work for me.

View 14 Replies View Related

FastCgi Or SuPHP

Apr 1, 2009

what do you prefer?

fastcgi or suphp?

which one is better with suexec (in security and resource usage)?

View 11 Replies View Related

Mod_php Vs. Fastcgi

Jul 6, 2009

I'm looking at optimizing our dynamic content delivery process and there are some interesting claims regarding fastcgi vs. mod_php.

What I am wondering about is assuming apache serving ONLY php content, why would fastcgi perform any better than mod_php? The memory footprint of spawned workers exists in both solutions.

Wouldn't context switches and buffering in fastcgi actually lower performance?

What could be gained by using a different web server (nginx/lighty) ? The primary bottleneck would still be physical memory (assuming <255 workers) ?

View 8 Replies View Related

Should We Not Be Using PHPSuExec With FastCGI?

May 2, 2009

Should we not be using PHPSuExec with FastCGI?

View 1 Replies View Related

Iis7 Fastcgi

Aug 13, 2008

i'm using fastcgi for PHP app. i have 5 sites on my server but fastcgi works only one site which is the first opened if you open second site iis give me error like "HTTP Error 500.0 - Internal Server Error
C:PHPphp-cgi.exe - The FastCGI process exited unexpectedly". i restart iis and open another site firstly it works but again another site give me error.

View 1 Replies View Related

PHP 5.25 And Microsoft FastCGI

Dec 7, 2007

I've already posted this over at the vBulletin forums and with their tech support team, but so far no one has been able to find a solution. Someone suggested I post here as well.

I am currently running vB using PHP 4.3.9 with Zend WinEnabler on a windows 2003 server. I have a seperate database server and a web server. This current configuration works fine, but I am moving to an upgraded web server and this is where the problems start.

Due to intermitant issues with Zend WinEnabler (now a discontinued product) I wanted to move to the latest version of PHP (5.2.5 NTS) and Microsoft FastCGI. The problem is that I am getting blank pages when clicking the Today's Post link from the top menu and immediately following the submission of a new post. I've gone through all of the vBulletin listed suggestions about trouble shooting blank pages and none apply.

Because I have a seperate database sever, I am accessing the same database with the new server vB configuration I am migrating to. As such I suspect the issue has to be related to web server given there are no issues on the current live site and the only changes are the PHP version and acceleration app.

If anyone has some suggestions, please let me know. I am running out of time on my server migration window before I am going to be billed for two servers.

View 0 Replies View Related

PHP As Fastcgi And Htscanner

Aug 28, 2007

I try to enable register globals for a specific domain using htscanner and .htaccess (php runs as fastcgi). My phpinfo page says that register globals are On but they don't work.

View 1 Replies View Related

FastCGI Hello World Test?

Jun 20, 2009

Just moved to a 1and1 managed server in which FastCGI is enabled.

But I'm having problems getting Movable Type to run under fastcgi - which has never been a problem before, even on shared hosts.

Is there a 'hello world'-type test for fastcgi - so I can check if it is enabled?

View 3 Replies View Related

FastCGI- (apache 2.2, Php 5.1, Suexec)

Dec 17, 2008

I have just switched from mod_php to fastcgi + suexec, but now trying to use the ab command times out :

ab -n 10000 -c 100 [url]
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, [url]
Copyright 2006 The Apache Software Foundation, [url]
Benchmarking www.example.com (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
apr_poll: The timeout specified has expired (70007)
Total of 7422 requests completed

Then I get a bunch of emails from LFD ....

View 0 Replies View Related

Security Implications Of FastCGI

Jan 31, 2008

I recently changed one of my development servers from suPHP to FastCGI. I will admit, FastCGI is much quicker at PHP page generation and the system seems much more responsive.

However, I am looking into how FastCGI differs from suPHP in terms of security. Both run as a form of CGI outside of Apache itself -- which in theory is more secure. However, suPHP prevented users from setting insecure permissions (for instance, the max for files was 644, and for folders it was 755) -- something which FastCGI does not appear to do (although it could due to how it runs as a user).

Does anyone have any comments on this? Is there a way to force these same restrictions via FastCGI?

Also, any other comments in regards to the security of FastCGI vs. suPHP? I have run numerous searches and I don't seem to be able to find much. Google just returns a bunch of providers whose 'customers' are celebrating due to the provider choosing to implement FastCGI.

View 2 Replies View Related

PHP As Apache Module Or As FastCGI

Jan 22, 2007

I have a server running Apache 2 with PHP as an Apache module. There are a few php scripts that use lots of cpu when they run and have lots of hits, but Apache is still running fine and pages and php scripts load pretty fast. I was just wondering if running PHP as fastcgi would use less cpu or make php scripts load faster.

View 0 Replies View Related

Plesk 12.x / Linux :: PHP 5.3 Run As FastCGi Application

Nov 13, 2014

I setup PHP support to Run as FastCGi Application, and i setup the memory_limit=32M in DOMAIN/etc/php.ini, then i create a php program with ini_set('memory_limit','128M'), it does not according to my settings are limited. How can i limit it , only just use the disable_function = 'ini_set' ? or Was there other methods ? Because, When PHP runs as apache module , i can use the php_admin_value in vhost.conf to limit what i want , it does not limit everything like this (disable_function).

View 3 Replies View Related

Plesk 12.x / Linux :: FastCGI Not Parsing PHP

Apr 13, 2015

I've a new installation of Plesk 12 on a VPS (Ubuntu LTS12.04) and when FastCGI is selected it downloads the PHP files instead of parsing the PHP? Where to look config wise? I've checked php short tag options and they all seem fine.I've set up a test subscription to display the error here: URL....

View 5 Replies View Related

Plesk 12.x / Linux :: PHP Support Only For FastCGI?

Apr 23, 2015

In my Plesk 12.0, I installed support por PHP 5.3, and 5.4. But when I go to configure my site, I only can select these versions if I put PHP like FastCGI:

But in "Apache Module" I only can select PHP 5.3.3:

My WebSite doesn't work with FastCGI, only with "Module Apache".

Why I cannot select 5.3.29 with "Module Apache".

View 8 Replies View Related

To Read Ftp Log

Mar 6, 2008

We have been working on a site for a while, couple of days ago I copied the source from the server - as there are few people making the changes to it - to get a fresh copy.

Yesterday I was blasted by my client that I have deleted files on the server and it had caused the site to go in disarray and they had to upload everything again.

I didn't delete anything, only copied, and after some arguments (naturally I am not happy with the allegation put on me) I was able to get the FTP log, but I don't really know how to read it, I am hoping that someone here would know and be able to assist:

HTML4Strict Code:
Tue Mar 04 16:49:29 2008 0 xx.xx.xx.xx 9365 /home/APP_NAME/public_html/user/add_room.php a _ i r xxxx ftp 1 * cTue Mar 04 18:20:02 2008 0 xx.xx.xx.xx 3909 /home/APP_NAME/public_html/About.php a _ o r xxxx ftp 1 * cTue Mar 04 18:20:04 2008 0 xx.xx.xx.xx 6046 /home/APP_NAME/public_html/affiliate-join.html a _ o r xxxx ftp 1 * cTue Mar 04 18:20:08 2008 0 xx.xx.xx.xx 6158 /home/APP_NAME/public_html/affiliate-join.php a _ o r xxxx ftp 1 * c

I have replaced the IP, application name with x.

I am guessing that *c means copy, but I don't want to make fool of myself when I confront them with this. Assuming that *c is copy what would be the command for delete?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved