SystemException in API_Linux.cpp:172: setuid() failed: Resource temporarily unavailable

Got the following error while trying to load a site in browser.

 

SystemException in API_Linux.cpp:172: setuid() failed: Resource temporarily unavailable
Premature end of script headers: index.php

Fix:

The issue is due to resource limit in apache configuration. You can check this using the below command.

grep -i rlimit /usr/local/apache/conf/httpd.conf

I got the following output.

RLimitMEM 465300138
RLimitCPU 240
RLimitNPROC 5 15

I increased the RLimitNPROC and the issue got fixed. The current value is:

RLimitNPROC 10 25

 

Comments: 2

  1. Randy October 17, 2014 at 12:05 PM Reply

    thx , this post lead me to fix my site . thank Krishna

    • October 19, 2014 at 12:44 AM Reply

      Great to hear Randy !!

Leave a Reply

Your email address will not be published. Required fields are marked *