PHP-FPM(8)

πŸ“¦
version 8.1.2 Β· 3 versions
, in ubuntu jammy

πŸ’– NAME πŸ’–

php-fpm β€” the PHP FastCGI Process Manager, aka "PHP-FPM" πŸŽ€ (this page lives in the Scripting Language part of the manual, section 8, and yes it's the same PHP you know and love, just in daemon form)


✨ SYNOPSIS ✨

php-fpm [options]

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so, bestie, real talk: PHP is a widely-used general-purpose scripting language that's especially suited to Web development and can be embedded right into HTML. Iconic. Legendary. No notes. πŸ’…

This particular variant of PHP runs in the background as a daemon, just sitting there listening for CGI requests like the main character it is. Its output gets logged to /var/log/php-fpm.log. 🌸

Most options are set in the configuration file, and that configuration file is /etc/php-fpm.conf. By default, php-fpm will respond to CGI requests listening on localhost http port 9000. So what that means for you is: php-fpm expects your webserver to forward all requests for .php files to port 9000, and you should go edit your webserver configuration file appropriately. Do it. It's giving setup. ✨


πŸ‘‘ OPTIONS πŸ‘‘

One bullet per option, bestie, no skips:

  • -C β€” Do not chdir to the script's directory.
  • --php-ini path|file, -c path|file β€” Look for the php.ini file in the directory path, or just use the specified file.
  • --no-php-ini, -n β€” No php.ini file will be used at all. Bold. Iconic.
  • --define foo[=bar], -d foo[=bar] β€” Define INI entry foo with value bar.
  • -e β€” Generate extended information for debugger/profiler.
  • --help, -h β€” This help.
  • --info, -i β€” PHP information and configuration.
  • --modules, -m β€” Show compiled in modules.
  • --version, -v β€” Version number --prefix path
  • -p β€” Specify alternative prefix path (the default is /usr).
  • --pid file, -g β€” Specify the PID file location.
  • --fpm-config file, -y β€” Specify alternative path to the FastCGI process manager configuration file (the default is /etc/php-fpm.conf).
  • --test, -t β€” Test the FPM configuration file and exit. If it's called twice (-tt), the configuration is dumped before exiting. 🫢
  • --daemonize, -D β€” Force it to run in the background and ignore the daemonize option from the configuration file.
  • --nodaemonize, -F β€” Force it to stay in the foreground and ignore the daemonize option from the configuration file.
  • --force-stderr, -O β€” Force output to stderr in nodaemonize even if stderr is not a TTY.
  • --allow-to-run-as-root, -R β€” Allow the pool to run as root (disabled by default). 🚨

🌈 FILES 🌈

  • php-fpm.conf β€” The configuration file for the php-fpm daemon.
  • php.ini β€” The standard php configuration file.

πŸ’€ SIGNAL πŸ’€

Once it's started, php-fpm responds to several POSIX signals. Learn them, they're your besties now:

  • SIGINT, SIGTERM β€” immediate termination 😭
  • SIGQUIT β€” graceful stop
  • SIGUSR1 β€” re-open log file
  • SIGUSR2, SIGHUP β€” graceful reload of all workers + reload of fpm conf/binary

🧚 SEE ALSO 🧚

The PHP-FPM website: http://php-fpm.org

For a more or less complete description of PHP look here: http://www.php.net/manual/

A nice introduction to PHP by Stig Bakken can be found here: http://www.zend.com/zend/art/intro.php


πŸ™ˆ BUGS πŸ™ˆ

You can view the list of known bugs or report any new bug you found at: http://bugs.php.net

(Not me manifesting a bug report… but fr fr, that's the place. πŸ’œ)


🌸 AUTHORS 🌸

PHP-FPM SAPI was written by Andrei Nigmatulin. The mailing-lists are highload-php-en (English) and highload-php-ru (Russian).

The PHP Group: Thies C. Arntzen, Stig Bakken, Andi Gutmans, Rasmus Lerdorf, Sam Ruby, Sascha Schumann, Zeev Suraski, Jim Winstead, Andrei Zmievski.

A List of active developers can be found here: http://www.php.net/credits.php

And last but not least PHP was developed with the help of a huge amount of contributors all around the world. 🫢🌍


⭐ VERSION INFORMATION ⭐

This manpage describes php-fpm, version 8.1.2-1ubuntu2.28.


Copyright Β© The PHP Group Copyright (c) 2007-2009, Andrei Nigmatulin

This source file is subject to version 3.01 of the PHP license, that is bundled with this package in the file LICENSE, and is available through the world-wide-web at the following url: https://www.php.net/license/3_01.txt

If you did not receive a copy of the PHP license and are unable to obtain it through the world-wide-web, please send a note to license@php.net so we can mail you a copy immediately.


okay that's the whole page bestie, hope it slayed πŸŽ€ this one's from The PHP Group, dated 2021, and it's the PHP-FPM(8) page β€” go start that daemon, you got this, mwah πŸ’–βœ¨

πŸ“¦ where this page comes from