1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PhP 5.2.1 memory limit problems

Discussion in 'Site & Server Administration' started by elkiwi, Apr 4, 2007.

  1. #1
    Hi, it seems that my host updated my VPS to PHP 5.2.1 and I'm having a lot of problems with php scripts now hitting a "memory limit", when they didn't previously.

    I've obviously tried changing the php.ini memory_limit settings but with no change to where the errors occur in the script.

    I read that I could be a compile problem do do with --enable_memory_limit

    Has anyone else had problems like this? Would it be better to go back to 5.2.0?


    Thanks
     
    elkiwi, Apr 4, 2007 IP
  2. stugs

    stugs Peon

    Messages:
    157
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What does phpinfo() say the memory limits are?
     
    stugs, Apr 4, 2007 IP
  3. elkiwi

    elkiwi Active Member

    Messages:
    536
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    68
    #3
    I've had it set upto 2Gigs but with the same problem.
     
    elkiwi, Apr 5, 2007 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Edit /etc/php.ini and search for memory_limit

    Set it to higher value like 32M

    Restart apache :
    /sbin/service httpd restart
     
    agnivo007, Apr 6, 2007 IP
  5. elkiwi

    elkiwi Active Member

    Messages:
    536
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    68
    #5
    Hi, thanks, but as i said I'd already tried that avenue. What was causing the problem was a setting in the httpd.conf --> RLimitMEM, which was set to about 22Meg. I remed this line out and eliminated the problem. This must have been set by mt hosting co. (or cpanel) without my knowing.

    Thanks for the suggestions.
     
    elkiwi, Apr 6, 2007 IP
  6. eddy2099

    eddy2099 Peon

    Messages:
    8,028
    Likes Received:
    568
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for the update.
     
    eddy2099, Apr 6, 2007 IP
  7. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #7
    httpd.conf --> RLimitMEM

    Apache 2.x ??
     
    agnivo007, Apr 6, 2007 IP
  8. foulplay

    foulplay Peon

    Messages:
    243
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #8
    If you have PHP 5.2.1 the minimum for the memory setting is 16mb. You set that on the PHP.INI file.
     
    foulplay, Apr 7, 2007 IP