zend_mm_heap corrupted ERROR crashing app server - php

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.

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.

Apache server stopped working

I'm using Apache/2.2.16 (Debian) Server as a test server. It has stopped working. What I mean is whenever I try to access a page at say x.x.x.x/foo/bar.php my browsers status bar says waiting for x.x.x.x and the server never responds.
This is what the error logs at says:
[Thu Jun 25 11:30:22 2015] [error] [client 94.200.27.10] PHP Parse error: syntax error, unexpected T_STRING in /usr/share/drupal6/abdi-test/index.php on line 28
[Thu Jun 25 11:30:59 2015] [error] [client 94.200.27.10] PHP Parse error: syntax error, unexpected T_STRING in /usr/share/drupal6/abdi-test/index.php on line 28
[Thu Jun 25 11:31:20 2015] [error] [client 94.200.27.10] PHP Fatal error: Call to undefined method DbConnector::dbQuery() in /usr/share/drupal6/abdi-test/index.php on line 31
[Thu Jun 25 11:57:41 2015] [error] [client 94.200.27.10] Directory index forbidden by Options directive: /usr/share/drupal6/abdi-test/
[Thu Jun 25 11:59:03 2015] [error] [client 94.200.27.10] Directory index forbidden by Options directive: /usr/share/drupal6/abdi-test/
[Thu Jun 25 12:15:33 2015] [error] [client 94.200.27.10] Directory index forbidden by Options directive: /usr/share/drupal6/abdi-test/
[Thu Jun 25 12:31:56 2015] [error] [client 94.200.27.10] Directory index forbidden by Options directive: /usr/share/drupal6/abdi-test/
[Thu Jun 25 12:49:47 2015] [error] [client 94.200.27.10] Directory index forbidden by Options directive: /usr/share/drupal6/abdi-test/
[Thu Jun 25 12:50:15 2015] [error] [client 151.80.123.208] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Thu Jun 25 12:56:29 2015] [error] [client 94.200.27.10] Directory index forbidden by Options directive: /usr/share/drupal6/abdi-test/
I'm just an intern so I only have ftp access to this test server. My supervisor says there is a problem with the code on one of the pages somewhere on the server but he's too busy with something else to fix it right now.
Does anyone know what might be wrong?

website not working after moving from local to the server

am using codeigniter 2.2 and my os is ubuntu 14.04 . I have developed a website using codeigniter on my localhost. it was working fine.
now i have moved the site to the real server http://hotlunchorders.com/. i am getting the error.
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster#hotlunchorders.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
my .htaccess file
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
errorlog file in server
[Thu Jun 04 08:00:35 2015] [error] [client 67.213.90.137] SoftException in Application.cpp:256: File "/home/hotlunchorders/public_html/index.php" is writeable by group
[Thu Jun 04 08:00:35 2015] [error] [client 67.213.90.137] SoftException in Application.cpp:256: File "/home/hotlunchorders/public_html/index.php" is writeable by group
[Thu Jun 04 07:59:57 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/404.shtml, referer: http://hotlunchorders.com/beta/index.php/profile/index
[Thu Jun 04 07:59:57 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/beta/assets/css/global-style-color-icon.css, referer: http://hotlunchorders.com/beta/index.php/profile/index
[Thu Jun 04 07:59:54 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/404.shtml, referer: http://hotlunchorders.com/beta/index.php/home/index
[Thu Jun 04 07:59:54 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/beta/assets/css/global-style-color-icon.css, referer: http://hotlunchorders.com/beta/index.php/home/index
[Thu Jun 04 07:59:49 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/404.shtml, referer: http://hotlunchorders.com/beta/index.php/order/step4/cod
[Thu Jun 04 07:59:49 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/beta/assets/css/global-style-color-icon.css, referer: http://hotlunchorders.com/beta/index.php/order/step4/cod
[Thu Jun 04 07:59:42 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/404.shtml, referer: http://hotlunchorders.com/beta/index.php/order/step3
[Thu Jun 04 07:59:42 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/beta/assets/css/global-style-color-icon.css, referer: http://hotlunchorders.com/beta/index.php/order/step3
[Thu Jun 04 07:59:30 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/404.shtml, referer: http://hotlunchorders.com/beta/index.php/order/step2
[Thu Jun 04 07:59:30 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/beta/assets/css/global-style-color-icon.css, referer: http://hotlunchorders.com/beta/index.php/order/step2
[Thu Jun 04 07:59:26 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/404.shtml, referer: http://hotlunchorders.com/beta/index.php/order/step1
[Thu Jun 04 07:59:26 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/beta/assets/css/global-style-color-icon.css, referer: http://hotlunchorders.com/beta/index.php/order/step1
[Thu Jun 04 07:58:07 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/500.shtml
[Thu Jun 04 07:58:07 2015] [error] [client 67.213.90.137] SoftException in Application.cpp:256: File "/home/hotlunchorders/public_html/index.php" is writeable by group
[Thu Jun 04 07:58:05 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/404.shtml, referer: http://hotlunchorders.com/beta/index.php/profile/index
Can someone help me to fix this problem. tnx.
Points to look at:
Is rewrite module enabled? Enable by sudo a2enmod rewrite.
Are paths correct? Linux is case sensitive.
is writeable by group may point out the permission problems. Try changing permission set to sudo chmod 0750 respective files and directories.

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

FastCGI Configuration errors - upload and image processing fail

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

Categories