Blog

500 Internal Server due to low RLimitMem value

Published on: August 13, 2009 by Arnold Pablo

500 Internal Server due to low RLimitMem value

Scenario:

Sometimes our clients have come across the issue that their website was causing 500 Internal Server error while loading the PHP pages. On investigating further we had found that the error log was saying the error below

/usr/bin/php: error while loading shared libraries: libpthread.so.0: failed to map segment from shared object: Cannot allocate memory

Our further Investigation led the issue to be RLimitMem directive enabled by the client being too low. The Rlimit directives are used to limit the amount of resource which can be used by processes forked off from the httpd children. RLimit directives of apache often give a false feeling of limiting the user resources.

Commenting out RLimitMem value solved the issue. If that also didn’t fix the issue, check out for the limit settings in /etc/security/limits.conf

I hope this helps a bit sometime in the future for my fellow SAGEs

Category : Apache, cPanel, General, Linux

Arnold Pablo

Arnold Pablo

Technology always fascinated me and continues to do so. I started my career back in 2004 as a Junior System Admin and worked in various capacities both in technical and managerial roles. I love to experiment and try out new OSS projects and in free time, go for cycling to the interiors of God's own country, Kerala!

You may also read:

Comments

Add new commentSIGN IN

Let's Connect

Get new updates

Categories

$0.000 items