PHP scripts giving 500 Internal Server Errors and apache error log shows FATAL: erealloc()”

“PHP scripts giving 500 Internal Server Errors and apache error log shows the error as follows:”

PROBLEM

FATAL:  erealloc():  Unable to allocate 37581 bytes
[Mon Apr 14 19:07:39 2008] [error] [client 125.17.242.245] Premature end
of script headers: /home/username/public_html/site/index.php


SOLUTION
 

The cause of the problem is because of the line “RLimitMEM 22369621” in httpd.conf file.commented out this line:# grep RLimitMEM /usr/local/apache/conf/httpd.conf#RLimitMEM

Both comments and pings are currently closed.

Comments are closed.