[Wolves] Limiting resources on php-cli children

Simon Burke simonb at fatsportsman.eu
Tue Apr 14 12:42:58 UTC 2015


So I have a shared hosting platform that uses suphp to ensure scripts are
run as the respective user. However some sites are taking the mick 'a bit'
with CPU time. The web content isn't mine to make changes to, so I would
like to limit the the amount of cpu or be able to nice these processes.

The problem is that so far I have attempted a few things but none appear to
be doing what I'd trying to achieve. So fat I have tried using the
RLimitCPU in the Apache config, and setting limits for users in
/etc/security/limits/conf. Neither of which appear to be limiting the
php-cgi processes suphp spawns (as the respective user).

Can any suggest a better method? or possibly tell me why Im going about it
the wrong way and what is a better method?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/wolves/attachments/20150414/8593b2e4/attachment.html>


More information about the Wolves mailing list