FastCGI Configuration errors - upload and image processing fail - php

My wordpress is behaving strangely, after I changed the php handler to fcgi
[Sat Dec 03 02:13:06 2011] [warn] [client 66.249.72.226] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Sat Dec 03 02:13:06 2011] [error] [client 66.249.72.226] Premature end of script headers: index.php
[Sat Dec 03 02:18:11 2011] [warn] [client 94.139.59.97] mod_fcgid: read data timeout in 40 seconds, referer: http://www.domain.com/wp-admin/upload.php
[Sat Dec 03 02:18:11 2011] [error] [client 94.139.59.97] Premature end of script headers: admin.php, referer: http://www.domain.com/wp-admin/upload.php
[Sat Dec 03 02:18:18 2011] [warn] mod_fcgid: process 24965 graceful kill fail, sending SIGKILL
How can i Fix this? I made the php-handler change via cPanel, along with a php upgrade to 5.3.8.

You need to play with your FCGI settings in order to fix this. This usually speaks of the fcgi scripts dying too fast.
Check out http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html for more information. For a start you could use:
FcgidMinProcessesPerClass 0
FcgidMaxProcessesPerClass 8
FcgidMaxProcesses 150
FcgidIdleTimeout 60
FcgidProcessLifeTime 120
FcgidIdleScanInterval 30

Related

error reading data from FastCGI server

I get the following error:
[Fri Dec 22 19:45:04.824183 2017] [fcgid:warn] [pid 11484:tid 140643225478912] (104)Connection reset by peer: [client xx.xx.xx.xx] mod_fcgid: error reading data from FastCGI server, referer: http://8-bit.nl/ag-admin/import.php?action=node
[Fri Dec 22 19:45:04.824289 2017] [core:error] [pid 11484:tid 140643225478912] [client xx.xx.xx.xx] End of script output before headers: getSpecificNode.php, referer: http://8-bit.nl/ag-admin/import.php?action=node
It's a PHP-script which reads XML files and post this into the database.
I found online that it has something to do with FcgidBusyTimeout. How can I change this value in .htaccess? I'm on shared hosting.

zend_mm_heap corrupted ERROR crashing app server

I have encountered "zend_mm_heap corrupted" Error on my app server.
error_log trace is below
[Fri Oct 16 23:25:57 2015] [error] [client "client ip"] zend_mm_heap corrupted
[Fri Oct 16 23:25:57 2015] [error] [client "client ip"] Premature end of script headers: index.php
[Fri Oct 16 23:25:57 2015] [error] [client "client ip"] zend_mm_heap corrupted
[Fri Oct 16 23:25:57 2015] [error] [client "client ip"] Premature end of script headers: index.php
[Fri Oct 16 23:25:58 2015] [error] [client "client ip"] zend_mm_heap corrupted, referer: http://domain/
[Fri Oct 16 23:25:58 2015] [error] [client "client ip"] Premature end of script headers: index.php, referer: http://domain/
[Fri Oct 16 23:25:58 2015] [error] [client "client ip"] zend_mm_heap corrupted, referer: http://domain/
[Fri Oct 16 23:25:58 2015] [error] [client "client ip"] Premature end of script headers: index.php, referer: http://domain/
I tried different approach bu no luck. Any Idea how this problem can be fixed.
Thanks in advance
Update : Issue is resolved now.
Made two changes in app server to clear the issues.
One reinstalled the frame work used in the server. that resolved the issue of zend_mm_heap.
Secondly removed unwanted extension of homeloader.so from php.ini to end the error of Premature end of script headers: index.php.

php does not work always returns 500 error

I host 3 web site on an vps.
each has a phpt test script
a1.com/test.php
a2.com/test.php
a3.com/test.php
a1.com/test.php
a2.com/test.php
work well
but when I call
a3.com/test.php
it always report error
[Wed Jan 28 01:01:52.801563 2015]
[fcgid:warn] [pid 27783] (104)Connection reset by peer:
[client ***.***.27.***:50211]
mod_fcgid: error reading data from FastCGI server
[Wed Jan 28 01:01:52.801651 2015] [core:error] [pid 27783]
[client ***.***.27.***:50211]
End of script output before headers: test.php
your comment welcome
Speaking on personal experience, make sure that the directory/file permissions are set properly on a3.com/test.php. If not set properly they can result in a 500 error

Magento mass reindexing gives internal server error

How can we reindex a Magento 1.7.02 version site having more than 24,000 products and hundreds of categories?
When I try to reindex the product price index in Magento Admin Index Management, it generates an internal Server Error 500. When I checked the server log for errors it shows up with messages:
home2/mysitete/public_html/403.shtml
[Wed Jun 04 22:15:03 2014] [error] [client 101.0.79.114] client denied by server configuration: /home2/mysitete/public_html/ultimate4wheel/app/etc/local.xml
[Wed Jun 04 22:14:37 2014] [error] [client 202.191.65.162] File does not exist: /home2/mysitete/public_html/404.shtml
[Wed Jun 04 22:14:37 2014] [error] [client 202.191.65.162] File does not exist: /home2/mysitete/public_html/favicon.ico
[Wed Jun 04 22:14:36 2014] [error] [client 202.191.65.162] File does not exist: /home2/mysitete/public_html/500.shtml, referer: http://mysitetest.com.au/ultimate4wheel/index.php/admin/process/edit/process/4/key/e7cfe1aaf5b456e018f28e488e42a4bd/
[Wed Jun 04 22:13:51 2014] [error] [client 101.0.79.114] File does not exist: /home2/mysitete/public_html/403.shtml
[Wed Jun 04 22:13:51 2014] [error] [client 101.0.79.114] client denied by server configuration: /home2/mysitete/public_html/ultimate4wheel/app/etc/local.xml
[Wed Jun 04 22:13:48 2014] [error] [client 101.0.79.114] File does not exist: /home2/mysitete/public_html/403.shtml
[Wed Jun 04 22:13:48 2014] [error] [client 101.0.79.114] client denied by server configuration: /home2/mysitete/public_html/ultimate4wheel/app/etc/local.xml
[Wed Jun 04 22:13:43 2014] [error] [client 101.0.79.114] File does not exist: /home2/mysitete/public_html/403.shtml
[Wed Jun 04 22:13:43 2014] [error] [client 101.0.79.114] client denied by server configuration: /home2/mysitete/public_html/ultimate4wheel/app/etc/local.xml
[Wed Jun 04 22:13:35 2014] [error] [client 101.0.79.114] File does not exist: /home2/mysitete/public_html/403.shtml
[Wed Jun 04 22:13:35 2014] [error] [client 101.0.79.114] client denied by server configuration: /home2/mysitete/public_html/ultimate4wheel/app/etc/local.xml
[Wed Jun 04 22:13:21 2014] [error] [client 101.0.79.114] File does not exist: /home2/mysitete/public_html/403.shtml
[Wed Jun 04 22:13:21 2014] [error] [client 101.0.79.114] client denied by server configuration: /home2/mysitete/public_html/ultimate4wheel/app/etc/local.xml
[Wed Jun 04 22:12:06 2014] [error] [client 101.0.79.114] File does not exist: /home2/mysitete/public_html/403.sht
Can anyone help me to solve it... or reindex correctly?
I have also tried increasing time limit, memory limit, skipping security, etc. but didn't work as I wrote in .htaccess file:
php_value memory_limit 2836M
php_value max_execution_time 2592000
php_value max_input_time 2592000
php_value session.gc_maxlifetime 864000
php_value session.cookie_lifetime 864000
php_value max_input_vars 50000
For mass re-indexing you should always try command prompt.
Go to your project path through command line:
cd path/to/your/project/folder
And then open "Shell" folder
cd shell
And then do the following command to re-index all indexes.
php indexer.php --reindexall
For more info go through this link.
Magento link

can't apply process slot

I've got a problem with a webserver. I did change nothing on the Apache config, I was just working on the site (typo3 FYI) when I got these 500 Error codes. Other websites are running fine. Could it be that it was a one-time error and apache then decided "I dont like you anymore"?
[Tue May 03 15:44:47 2011] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Tue May 03 16:00:02 2011] [warn] mod_fcgid: can't apply process slot for /home/<customer>/public_html/typo3/ajax.php
[Tue May 03 16:00:08 2011] [warn] mod_fcgid: can't apply process slot for /home/<customer>/public_html/index.php
[Tue May 03 16:00:38 2011] [warn] mod_fcgid: can't apply process slot for /home/<customer>/public_html/index.php
[Tue May 03 16:00:42 2011] [warn] mod_fcgid: can't apply process slot for /home/<customer>/public_html/index.php
[Tue May 03 16:01:00 2011] [warn] mod_fcgid: can't apply process slot for /home/<customer>/public_html/index.php
and so on...
my fcgid.conf
<IfModule mod_fcgid.c>
MaxProcessCount 100
AddHandler fcgid-script .fcgi
IPCConnectTimeout 20
</IfModule>
would restart the (production-)server solve the problem?
According to this page:
The fix is simple. In my case it was a
simple chmod 755 /var/log/httpd, which
allows Apache to actually read its log
directory! Before the change, I was
getting “Service Unavailable” with a
log error of [warn] mod_fcgid: can’t
apply process slot for [dispatch.fcgi
full path]. Now it works!
Yes,
But It appears the maxProcessCount rule is not honored found here
http://www.apachelounge.com/viewtopic.php?t=2563
If you read that you see you can set a variable to ensure it does

Categories