Question

Ubuntu 12.04 x64 ~ LEMP+WordPress: PHP keeps crashing

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.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Sweet! :]

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

You can just browse to http://yourip:nginxport