Tutorial to tune php-fpm

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by haunted on February 28, 2015 at 8:35pm

Hello people, i run my drupal 7 site on a VPS with 1GB of ram with a LAMP stack. I would like to switch to nginx and php-fpm because people keep saying that php-fpm saves a lot of memory compared to apache mod_php.

Unfortunately, the last time I tried, i did not have much success. I had the cpu overloaded, or soimetimes "page not found" for some pages pages, or max-children limit reached in logs.

To set up nginx i used this example http://wiki.nginx.org/Drupal and nginx itself worked, but I could not configure php-fpm well for my server, despite having read various tutorials here and there.

Any advice? Thanks

Comments

Perusio

Posted by derek smalls (not verified) on February 28, 2015 at 11:06pm
derek smalls's picture

Hi

Use perusio's tutorial and git repo. I got into a bit of trouble with virtual hosts but it turned out i was overthinking it!

If you can start with a vanilla vps it will probably help. Here is also a good article based around perusio's config

http://komelin.com/en/5tips/right-nginx-configuration-drupal-ubuntu

Thanks for the tip, I'll test

Posted by haunted on March 1, 2015 at 1:09pm

Thanks for the tip, I'll test it.

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /