Forum Moderators: coopster

Message Too Old, No Replies

Sushosin/PHP memory limit

php suhosin memeory

         

belfasttim

6:11 pm on Apr 27, 2009 (gmt 0)

10+ Year Member



Hi--

I have php running with the Suhosin patch on a production server. In the php.ini the memory_limit is set to 90MB-- and I can verify this with the phpinfo() statement. I also have set the Suhosin memory_limit to 90MB, which should mean that scripts can set their own memory limit as long as it is below this threshold.

However, when I run the scripts no matter what I do I get the error "ALERT - script tried to increase memory_limit to 89128960 bytes which is above the allowed value" even though it's clearly NOT above the allowed value.

Is there somewhere else this variable is being set? Or am I missing something?

Thanks

belfasttim

6:38 pm on Apr 27, 2009 (gmt 0)

10+ Year Member



Solved--

The suhosin limits I was setting in php.ini were getting overridden by the suhosin limits in the conf.d/suhosin.ini file. So I deleted all suhosin vars in the php.ini and moved them to the conf.d/suhosin.ini file.