By e2 on
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
Did you resolve this? I'm
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'.
Founder @ Glass Analytics
I have tested this. It is
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.
Founder @ Glass Analytics
We are running Nginx +
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).
What were the issues you had
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.
Founder @ Glass Analytics
yes
yes
I'm going to follow this
I'm going to follow this guide and will test it
http://renebakx.nl/22/compiling-php-5-3-3-with-nginx-on-ubuntu-10-4-for-...
Use PHP-FPM
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!
Same here. We're running
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.