1

Overriding memory_limit with .htaccess resulting in mysterious alerts in syslog (suhosin)

view story
linux-howto

http://serverfault.com – PHP version: PHP 5.3.10-1ubuntu3.4 with Suhosin-Patch (cli) Used in apache2 with: libapache2-mod-php5 The global options memory_limit for PHP is set to 512M. So far so good. Now a script tries to allocate more than this and fails due to the memory_limit. So far so good. But now a strange thing happens. When I create .htacess with php_value memory_limit "1025M" there are errors in the syslog just with requesting a simple PHP file with one echo. Sep 21 18:14:02 ccollard2 suhosin[8611]: ALERT - script tried to increase memory_limit to 1082130432 bytes which is above the allowed value (a (HowTos)