Hi

After reading a lot in forums I see that there is some stability issue with running drupal with nginx.
Nginx works bad with spawn-cgi so a solution is php-fpm ?
Does nginx work nice with drupal (absolutly stable) ?

Is it a stable solution , working with nginx?
or should I recompile and reconfigure Apache and that's it?

Can I work with nginx + php-fpm as a stable solution?

Thanks

Comments

chrism2671’s picture

Did you resolve this? I'm interested in the same question.

One thing that may appeal to you more than drupal is pressflow, as it is drupal 'on steroids'.

chrism2671’s picture

I have tested this. It is pretty good, much faster. I have more stability as a result of less memory & CPU load problems, HOWEVER, the setup is not 100% stable and there are still a few teething problems. We didn't use php-fpm (rather just used standard fast-cgi)- it will still take a couple of years I think before this becomes standard.

everyz’s picture

We are running Nginx + php-fpm on a very large site, so this products are very stable currently. We have switched to php-fpm instead of spawn-cgi, because we had issued with spawn-cgi stability. Nginx doesn't depend on Drupal in anyway and is very cool and stable web server, so you can absolutely switch to it right now. Still if you are not sure about using php-fpm (fastcgi container) and Nginx you can use Apache for serving php and Nginx for static files (even in this case you will get performance gain).

chrism2671’s picture

What were the issues you had with spawn-cgi? Did you backport FPM into PHP 5.2, or upgrade to PHP 5.3?

We have some issues, the main one being that the php processes just seem to hang every so often, usually when under heavy load.

sonasn’s picture

yes

hedac’s picture

dreamdust’s picture

PHP-FPM is far better than spawn-fcgi. We run a rather large site using nginx + php-fpm and have no problems with stability, and it's lightning fast!

LeviG’s picture

Same here. We're running nginx + php-fpm and have no problems. Though it took some time and nerves to get it running stable and bug free but once it's done you won't exchange it to anything else.