Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Nov 2005
    Posts
    9

    Default Apache 2.2 PHP5 Out of Memory

    Hello,

    One of my users is reporting problems running Gallery2 on my machine. I started looking at it and its giving me a hard time.

    I have Aapche 2.2+PHP5 running with suphp and Apache suexec. When trying to update repositories in Gallery2 it just hangs and it logs an error:

    Code:
    [13-Jul-2009 16:38:59] PHP Fatal error:  Out of memory (allocated 10223616) (tried to allocate 311296 bytes) in /home/paardver/g2data/smarty/templates_c/%%1141954920/matrix/%%26^261^2615E4E5%%AdminPlugins.tpl.php on line 270
    My machine has plenty of free RAM (250MB+) and it always stops at the same point (10223616). I already looked at the users ulimit, the PHP memory limit is set at 128M and still gives me the same error. Also tried recompiling php latest version with apache 2.2 same problem. When I try disabling suphp/suexec it does not give any errors and everything works correct.

    I do would like to use suphp. Does anyone know how to fix this?
    Last edited by devourer; 07-13-2009 at 10:06 AM.

  2. #2
    Member
    Join Date
    Sep 2008
    Posts
    98

    Default

    This thread may be of interest to you:
    Step 2 hang - memory limitations | Gallery

  3. #3
    Member
    Join Date
    Nov 2005
    Posts
    9

    Default

    Thank you, the problem seems to be the RLimit being to low. suphp seems to generate alot of overhead. I increased the Rlimit and everything works like a charm!

Similar Threads & Tags
Similar threads

  1. Apache 2 and php5 on new server
    By peterr in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 04-25-2008, 07:31 AM
  2. SuPHP+PHP5+Apache 2.0
    By bobin in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-22-2008, 06:52 PM
  3. Apache High Load and Apache Memory Limits
    By bsasninja in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-25-2007, 03:20 PM
  4. php5 as apache module
    By _Tux_ in forum New User Questions
    Replies: 10
    Last Post: 08-25-2005, 05:54 AM
  5. PHP5 Killed Apache
    By SEAL31 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-18-2004, 09:12 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube