Home >Backend Development >PHP Tutorial >What is php-fpm?
php-fpm (FastCGI Process Manager: FastCGI Process Manager) is another PHP FastCGI implementation. It is a patch package for php before PHP 5.3.3. Integrating FastCGI process management into PHP packages. Some of these additional features are 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, elegant stop/start
• Ability to start workers using different uid/gid/chroot/environment and different php.ini (replace safe_mode)
• Stdout and stderr logging
• Emergency restart in case of unexpected opcode cache corruption
• Accelerated upload support
• Support for "slow logging"
• Enhancements to FastCGI, such as fastcgi_finish_request() - a special function to complete the request and flush all data while continuing to perform time-consuming operations (video conversion, statistics processing, etc.)
…etc. .
It was not designed with virtual hosts (large pools) in mind, but it can be adapted to any usage model.
Related recommendations: "PHP Tutorial"
The above is the detailed content of What is php-fpm?. For more information, please follow other related articles on the PHP Chinese website!