PHP 5.3.3 Source In the beginning contains php-fpm, do not specifically re-patched, just to solve the source code directly configure, about the php-fpm of the compilation parameters? ENABLE-FPM? With-fpm-group=www? with-libevent-dir=libevent position.
This php-fpm no longer supports commands such as the/USR/LOCAL/PHP/SBIN/PHP-FPM (start|stop|reload) of the PHP-FPM patch and requires the use of signal control:
The master process can understand the following signals
SIGINT, SIGTERM immediately terminate.
Sigquit Smooth Termination
SIGUSR1 Reopen log file
SIGUSR2 smoothly overloads all worker processes and reloads the configuration and binary modules
Example:
PHP-FPM off:
Kill-sigint ' Cat/usr/local/php/var/run/php-fpm.pid '
PHP-FPM Restart:
KILL-SIGUSR2 ' Cat/usr/local/php/var/run/php-fpm.pid '
Second, the configuration file is no longer used in the XML format, changed to INI, but the configuration parameters almost as before, can be referenced in the format of XML format configuration.
????? -Supplemental content????? -
PHP-FPM Start-up:
Cp-f (php-5.3.x-source-dir)/sapi/fpm/init.d.php-fpm/etc/init.d/php-fpmchmod 755/etc/init.d/php-fpm/etc/init.d/ PHP-FPM start/sbin/chkconfig--add php-fpm (Add to boot Service list)/sbin/chkconfig php-fpm on
PHP-FPM start, stop, and restart:
/ETC/INIT.D/PHP-FPM start
/ETC/INIT.D/PHP-FPM stop
/ETC/INIT.D/PHP-FPM Reload
Ext.: http://ideas.spkcn.com/technology/php-technology/133.html