Report this

What is the reason for this report?

Ubuntu 12.04 x64 ~ LEMP+WordPress: PHP keeps crashing

Posted on October 28, 2013

Hi folks,

I’m running a 512MB RAM droplet with 2 separate single WP installs. Both vhost configs are identical. One of them is very new with just 6 posts so far. The other has been around since Dec '12.

I need some help here. For the life of me, I can’t figure out why PHP keeps crashing. I had the same problem with PHP5.3 + APC. Now I’m on PHP5.5 with ZendOpcache. I have to keep checking my site every now and then and login via SSH to restart PHP. Doesn’t sound right to me.

i. repository ppa:ondrej/php5 ii. repository ppa:nginx/stable

If someone could take a look at my configs and let me know what’s not right, will be greatly appreciated. I’m new to VPS have moved from a cPanel Shared Hosting. I like to seed now and hate to return to shared hosting should things not work out for me.

  1. /etc/nginx/nginx.conf: http://pastebin.com/A6GTZkwx
  2. /etc/nginx/sites-available/mydomain: http://pastebin.com/GiiCLX0L
  3. /etc/php5/fpm/php.ini: http://pastebin.com/AYQSae6v

I’m prepared to move the newer WP install to a shared host if required. I am currently not running W3TC or CloudFlare. I reckon I should be sorting out the crashing PHP before all else.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Guys, thanks for the help. PHP seems to be holding with Varnish installed. http://wp.me/pc4Vf-2b

Sweet! :]

Have you installed swap (MySQL eats up a lot of resources)? If not, check out <a href=“https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04”>How To Add Swap on Ubuntu 12.04</a>.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.