How to raise suhosin memory limit

mitchell

New member
Joined
Dec 2, 2013
Messages
1
Hello everyone,

I am using CB2.0 with PHP 5.5 (PHP-FPM) and suhosin enabled right now. I have a problem with suhosin. It seems like suhosin is killing PHP scripts when that scripts tries to allocate more than 313524224 bytes. Sometimes when loading a page of that website the browser only shows a blank screen and the following error appears in /var/log/messages

suhosin[23964]: ALERT - script tried to increase memory_limit to 313524224 bytes which is above the allowed value

How do I raise or disable that limit? I have looked everywhere but I can't find any suhosin settings in configuration files.

Thanks in advance,

Mitchell
 
Also as a tip, you can copy
Code:
/usr/local/directadmin/custombuild/configure/suhosin/suhosin.ini
to
Code:
/usr/local/directadmin/custombuild/custom/suhosin/suhosin.ini
and add the line Alex mentioned there. This way you will keep your changes when rebuilding through CustomBuild and they will be written to /usr/local/php54/lib/php.conf.d/10-directadmin.ini.
 
Back
Top