[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#423002: apache: The RLimitCPU directive doesn't act

> Using the RLimitCPU directive doesn't change anything in Apache behaviour
> : it doesn't limit execution time.
> I used RLimitCPU 30 in the config of a virtual server in order to limit
> execution time to 30 seconds, but it didn't seem to work, so I added :
> php_admin_value max_execution_time 60 to the virtual server config then,
> running a very long php page I got :
>> PHP Fatal error:  Maximum execution time of 60 seconds exceeded
> It shows that the script ran until the php time limit, without considering
> at all the RLimitCPU directive.

If you use mod_php this is the intended behaviour. From


"This applies to processes forked off from Apache children servicing
requests, not the Apache children themselves."

So this will affect php only if you use it in cgi mode, not if the php
scripts run in apache with mod_php.


Reply to: