The exact error message is this:

12)Cannot allocate memory: couldn't create child process: /usr/sbin/suphp for <php script file>

This is not a VPS, it's a generic Gentoo server. There is 1G of RAM for the server and 700M of RAM free at any given time, including when running this rather tiny script that only creates 1 connection to a MySQL DB. There's a cron job that runs this script every 30 seconds and suPHP runs out of memory almost every single time.

Can anybody please help?

link|improve this question
Recompiling apache/php is not an option as uptime for other scripts is critical. Thanks! – user183037 Jun 6 '11 at 19:55
Nobody........? :( – user183037 Jun 7 '11 at 2:31
feedback

1 Answer

Use something like <?php print system('ulimit -a'); ?> to check system limits. Check apache configuration for RLimitMEM directive.

link|improve this answer
Thanks Alex - it's just set to unlimited, so I guess that's not the problem :( – user183037 Jun 7 '11 at 18:59
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.