Forum Moderators: coopster

Message Too Old, No Replies

How to activate '–enable-memory-limit' configure option, in WHM/SSH?

         

basketmen

5:03 pm on Jun 29, 2011 (gmt 0)

10+ Year Member



Hi guys,

in my previous thread, i cant set different memory_limit value only in a file [webmasterworld.com] using instruction from other member. Someone told me the Server PHP installation must be compiled with the –enable-memory-limit configure option


so how to do that, in WHM/SSH?




if its in whm >> EasyApache (Apache Update), i can using easy apache, but which step exactly to do this? :


* 1. Profile
* 2. Apache Version
* 3. PHP Major Version
* 4. PHP Minor version
* 5. Short Options List
* 6. Exhaustive Options List
* 7. Save
* 8. Build

coopster

5:41 pm on Jul 5, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Someone told me the Server PHP installation must be compiled with the –enable-memory-limit configure option


Follow the links in the thread you cited and you will find that this is only true if you are running PHP < 5.2.1.

Prior to PHP 5.2.1, in order to use this directive it had to be enabled at compile time by using --enable-memory-limit in the configure line. This compile-time flag was also required to define the functions memory_get_usage() and memory_get_peak_usage() prior to 5.2.1.


[php.net...]