Fastcgi crashing!!

pucky

Verified User
Joined
Sep 9, 2006
Messages
751
Ever since I upgraded php5.5 to the latest version a couple of days ago its crashing all over the place.

PHP 5.5.17 (cli) (built: Sep 29 2014 01:29:35)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd.
with Suhosin v0.9.36, Copyright (c) 2007-2014, by SektionEins GmbH

[Tue Sep 30 11:42:02.106952 2014] [fcgid:error] [pid 767901:tid 140008384341952] mod_fcgid: process /usr/local/safe-bin/fcgid55.sh(814108) exit(communication error), get unexpected signal 11
[Tue Sep 30 11:42:02.107052 2014] [fcgid:error] [pid 767901:tid 140008384341952] mod_fcgid: process /usr/local/safe-bin/fcgid55.sh(814107) exit(communication error), get unexpected signal 11
[Tue Sep 30 11:51:23.049881 2014] [fcgid:error] [pid 767901:tid 140008384341952] mod_fcgid: process /usr/local/safe-bin/fcgid55.sh(814620) exit(communication error), get unexpected signal 11
[Tue Sep 30 11:51:23.049968 2014] [fcgid:error] [pid 767901:tid 140008384341952] mod_fcgid: process /usr/local/safe-bin/fcgid55.sh(814619) exit(communication error), get unexpected signal 11
[Tue Sep 30 12:23:40.889881 2014] [fcgid:error] [pid 767901:tid 140008384341952] mod_fcgid: process /usr/local/safe-bin/fcgid55.sh(816299) exit(communication error), get unexpected signal 11
[Tue Sep 30 12:23:40.889989 2014] [fcgid:error] [pid 767901:tid 140008384341952] mod_fcgid: process /usr/local/safe-bin/fcgid55.sh(816298) exit(communication error), get unexpected signal 11

My logs are full of these entries.
 
Are you sure you don't exceed suhosin memory limit? Please try disabling suhosin to be sure it's suhosin-related :) If it helps, try increasing the memory limit for suhosin.
 
You can just take it out of /usr/local/php55/lib/php.conf.d/10-directadmin.ini, or do the following instead:
Code:
cd /usr/local/directadmin/custombuild
./build set suhosin no
./build php n
 
Ok thanks let me try to recompile way. I have 5.5 running fastcgi and I have 5.4 running php-fpm.
 
Still crashing from just a few minutes ago

[Tue Sep 30 19:59:28.859007 2014] [fcgid:error] [pid 72718:tid 140392225294272] mod_fcgid: process /usr/local/safe-bin/fcgid55.sh(81385) exit(communication error), get unexpected signal 11
[Tue Sep 30 19:59:28.859140 2014] [fcgid:error] [pid 72718:tid 140392225294272] mod_fcgid: process /usr/local/safe-bin/fcgid55.sh(81384) exit(communication error), get unexpected signal 11
[Tue Sep 30 20:07:29.152875 2014] [fcgid:error] [pid 72718:tid 140392225294272] mod_fcgid: process /usr/local/safe-bin/fcgid55.sh(81908) exit(communication error), get unexpected signal 11
[Tue Sep 30 20:07:29.152969 2014] [fcgid:error] [pid 72718:tid 140392225294272] mod_fcgid: process /usr/local/safe-bin/fcgid55.sh(81907) exit(communication error), get unexpected signal 11
 
Do you have APC or any other 3rd party extensions installed?
 
No, APC is not installed. Maybe its an extension since I have cage installed and certain extensions are loaded but who knows.
 
Should I just switch back to one version of php and see if this is causing issues? Like 5.4 fcgi?
 
No, APC is not installed. Maybe its an extension since I have cage installed and certain extensions are loaded but who knows.

Do you mean CloudLinux? :) If yes, then the problem is clear - PHP reaches the memory limit set in cloudlinux.
 
Not sure how, the server has 16gb and each site is dedicated to 1024 of Vm. There are less than 60 sites on the box. Apart from adjusting everyones package I cant see where else that setting may be.
 
I was talking about the limits set in "CloudLinux LVE Manager" plugin.
 
What is the most popular setup that people are using for php1 and php2 installed on a server.

Mine is php1 fastcgi and php-fpm.
 
I was talking about the limits set in "CloudLinux LVE Manager" plugin.

I found 3 sites that were spiking on their CPU limits so I changed those to 2 cores but those messages still continue.
 
Look though my access log archives I can see that error log from 09072014 which was almost a month ago did not display these errors. Only thing I did at the end of Aug was update php to the latest version. I also upgraded MySQL 5.5 - 5.6. Nothing else really. I may just recompile the entire system to see if that fixes this issue.
 
This has not been resolved no matter what I do. Iv contacted John about this.

Find it hard to believe that nobody else is having this issue.
 
I believe I have found the issue.

It was .htaccess on one of my sites.

It seems fcgi will crash on occasion when it see the following

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

So this means, if you have modsecurity installed you cannot turn off modsecurity for one site?

I found it by restarting apache and watching error_log. I loaded my site and the errors appeared.
I checked .htaccess and removed the above line.

Hope this helps someone.

Thanks
 
This is not resolved afterall. Im still getting hundreds of these messages;

[Tue Sep 30 19:59:28.859007 2014] [fcgid:error] [pid 72718:tid 140392225294272] mod_fcgid: process /usr/local/safe-bin/fcgid55.sh(81385) exit(communication error), get unexpected signal 11
[Tue Sep 30 19:59:28.859140 2014] [fcgid:error] [pid 72718:tid 140392225294272] mod_fcgid: process /usr/local/safe-bin/fcgid55.sh(81384) exit(communication error), get unexpected signal 11
[Tue Sep 30 20:07:29.152875 2014] [fcgid:error] [pid 72718:tid 140392225294272] mod_fcgid: process /usr/local/safe-bin/fcgid55.sh(81908) exit(communication error), get unexpected signal 11
[Tue Sep 30 20:07:29.152969 2014] [fcgid:error] [pid 72718:tid 140392225294272] mod_fcgid: process /usr/local/safe-bin/fcgid55.sh(81907) exit(communication error), get unexpected signal 11

Has to be something to do with php. I was not having these issue prior to upgrading php.

I looked in the logs for March and there were no issues like this yet I was running the same php55 and php54 setup.
 
Last edited:
Back
Top