Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I recently rebuilt Apache to include mod_suPHP (previously using DSO). But after switching to suPHP, Wordpress sites hosted on my VPS would return something like,

Fatal error: Out of memory (allocated 2883584) (tried to allocate 77824 bytes) in /home/mine/public_html/wp-includes/class-simplepie.php on line 3522

However, if I refresh the page anywhere from once to about half a dozen times, the site loads up fine; and page no longer returns the error (in some cases I will need to go directly to the include to refresh). I thought it was a cache issue but I've cleared my cache and used machines on other networks to verify.

I could go to each WP installation and effectively get rid of the error, but new copies of Wordpress run into the same issue too. I've increased the memory limit to 256M with no luck. System wide, I'm only using roughly 80-100mb out of the 756 I have allocated. I'd appreciate it if anyone has any ideas on what can be done; would rather not re-provision the VPS.

share|improve this question
    
"I've increased the memory limit to 256M" Where? –  Mark Wagner May 17 '11 at 20:30
    
/usr/local/lib/ –  andrewthong May 17 '11 at 21:11
    
Hmm, I'm not following. Typically you increase memory limits in php.conf and /etc/security/limits.conf. What did you change? –  Mark Wagner May 17 '11 at 22:13
    
Sorry, the php.ini usr/local/lib/. The limits.conf file appears to have nothing set. –  andrewthong May 18 '11 at 3:13

1 Answer 1

up vote 0 down vote accepted

Commenting out 'RLimitMEM' in the Apache configuration file as suggested in this post appears to have resolved the issue.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.