php-fpm vs spawn-fcgi

Basic features:

http://php-fpm.org/

What is PHP-FPM?
PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.

These features include:

* Adaptive process spawning (NEW!)
* Basic statistics (ala Apache’s mod_status) (NEW!)
* Advanced process management with graceful stop/start
* Ability to start workers with different uid/gid/chroot/environment and different php.ini (replaces safe_mode)
* Stdout & stderr logging
* Emergency restart in case of accidental opcode cache destruction
* Accelerated upload support
* Support for a “slowlog”
* Enhancements to FastCGI, such as fastcgi_finish_request() – a special function to finish request & flush all data while continuing to do something time-consuming (video converting, stats processing, etc.)

… and much more.

It was not designed with virtual hosting in mind (large amounts of pools) however it can be adapted for any usage model.

Comparison:

http://php-fpm.org/about/

Uncomplete nginx practice:
http://wiki.nginx.org/NinX%2BPHP%2BFPM%2Bremote

Advertisements

One thought on “php-fpm vs spawn-fcgi

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s