Tutorial to tune php-fpm

Events happening in the community are now at Drupal community events on www.drupal.org.
haunted's picture

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

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

haunted's picture

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: