500 Internal Server due to low RLimitMem value

Website was causing 500 Internal Server error while loading the php pages. 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

Investigation led the issue to be RLimitMem directive enabled by the client being too low. RLimit directives of apache often gives 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

Related posts:

  1. Internal server errors while accessing Fantastico and phpmyadmin in cPanel & WHM
  2. Why are you getting 500 internal server error on your php pages
  3. How to resolve : Internal Server Error when accessing cpanel/WHM/Webmail
  4. Enabling mod_rewrite in Apache 2.2
  5. IFS

Comment Form

About this blog

This blog, acts as a knowledge repository for the world and is unofficial! Anything we find interesting in the cyber world will go here. Most cases, this blog will reflect the happiness of our staff in reaching successful solution to an issue (s)he worked on. A reference for other fellow SAGEs who come across similar issues later