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

Discussion in 'PHP' started by basketmen, Jun 29, 2011.

  1. #1
    Hi guys,

    in my previous thread, i cant set different memory_limit value only in a file 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? :

     
    basketmen, Jun 29, 2011 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    You only need to do this if your php version is < 5.2.1. Otherwise, just set the memory_limit directive in php.ini or in htaccess.
     
    jestep, Jun 29, 2011 IP
  3. basketmen

    basketmen Well-Known Member

    Messages:
    837
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    130
    #3
    my PHP version are 5.2.14, how is it?


    i already tried using htaccess, get error 500, the php are using fast-cgi
     
    basketmen, Jun 29, 2011 IP
  4. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #4
    What code are you using for htaccess.

    Should be:
    php_value memory_limit "128M"

    Make sure to use the quotes.
     
    jestep, Jun 29, 2011 IP
  5. basketmen

    basketmen Well-Known Member

    Messages:
    837
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    130
    #5
    yes this one get 500 Internal Server Error, i already tried your code too now


    other details
    WHM 11.30.0 (build 32)
    CENTOS 5.5 x86_64 standard
    PHP 5.2.14


    is there a way, to activate '–enable-memory-limit' configure option, in WHM/SSH?
     
    basketmen, Jun 29, 2011 IP