Detailed explanation of php-fpm configuration file conf

Environment linux, centos7.x, php5.6

php-fpm is a layer of server independent from the web server and php, of course it also has its own configuration file php-fpm.conf

Let’s take a look at the description of the configuration items:

  • pid = /var/run/php-fpm/
    pid file

  • error_log = /var/log/php-fpm/error.log
    Default error log path

  • log_level = notice
    Log level, optional values are alert (immediate processing) error (error) warning (warning) notice (general information) debug (debugging)

  • listen =
    The default listening port of php-fpm, the format is ip: port or port, the more port is 9000

Persist in original technology sharing, your support will encourage me to continue to create!