Bug#423002: apache: The RLimitCPU directive doesn't act
Package: apache
Version: 1.3.34-4.1
Severity: normal
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.
Apache should respect the parameter of RLimitCPU directive
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
Versions of packages apache depends on:
ii apache-common 1.3.34-4.1 support files for all Apache webse
ii debconf [debconf-2.0] 1.5.13 Debian configuration management sy
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libdb4.4 4.4.20-8 Berkeley v4.4 Database Libraries [
ii libexpat1 1.95.8-3.4 XML parsing C library - runtime li
ii libmagic1 4.20-4 File type determination library us
ii logrotate 3.7.1-3 Log rotation utility
ii lsb-base 3.1-23.1 Linux Standard Base 3.1 init scrip
ii mime-support 3.39-1 MIME files 'mime.types' & 'mailcap
ii perl 5.8.8-7 Larry Wall's Practical Extraction
apache recommends no packages.
-- debconf information:
* apache/enable-suexec: false
apache/server-name: ns1.mimizan.net
apache/document-root: /home/sites/www_root
apache/server-port: 80
* apache/init: true
apache/server-admin: tech@mediaforest.net
Reply to: