PHP-FPM Configuration in PHP 5.3.3

Source: Internet
Author: User
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

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.