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
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.
RLimitNPROC 5 15
I increased the RLimitNPROC and the issue got fixed. The current value is:
RLimitNPROC 10 25