PHP-FPM(8)
π PHP-FPM(8) β the manual page, but make it cute
okay bestie, welcome to the php-fpm page β that's section 8 of the manual, the "system administration" girlies. she's giving daemon energy and honestly? iconic.
β¨ NAME β¨
php-fpm β the PHP FastCGI Process Manager, aka 'PHP-FPM' π
π¦ SYNOPSIS π¦
php-fpm [options]
that's it. that's the whole vibe. flags only, no positional arguments, she doesn't need them. π
πΈ DESCRIPTION πΈ
so. PHP is a widely-used, general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. periodt. π
This is a variant of PHP that runs in the background as a daemon, just chilling there, listening for CGI requests. and where do all her thoughts go? output is logged to /var/log/php-fpm.log. lowercase queen. π
most of her settings don't live in flags at all, bestie β they live in the configuration file, which is /etc/php-fpm.conf. π
by default, php-fpm responds to CGI requests by listening on localhost http port 9000. which means she expects your webserver to forward every single request for '.php' files on over to port 9000 β so you should go edit your webserver configuration file appropriately. she's not coming to you, you're coming to her. β¨
π OPTIONS π
every single one, no skips, we don't do that here:
-Cβ do notchdirto the script's directory. stay put. π«Ά--php-inipath|file,-cpath|file β go look for thephp.inifile in the directory path, or just use the file you pointed at.--no-php-ini,-nβ nophp.inifile will be used at all. nothing. zero. unbothered. π--definefoo[=bar],-dfoo[=bar] β define the INI entry foo with the value bar. you're literally just making up rules now, slay.-eβ generate extended information for debugger/profiler. π--help,-hβ this help. hi, hello, that's me. π--info,-iβ PHP information and configuration. the lore. π--modules,-mβ show compiled in modules. look at all her little friends. π§--version,-vβ version number. β--prefixpath,-pβ specify an alternative prefix path (the default is/usr).--pidfile,-gβ specify the PID file location.--fpm-configfile,-yβ specify an 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. and get this β if you call it twice (-tt), the configuration is dumped before exiting. double tap for the receipts π--daemonize,-Dβ force her to run in the background and ignore thedaemonizeoption from the configuration file. overruling the config, we love a decisive queen.--nodaemonize,-Fβ force her to stay in the foreground and ignore thedaemonizeoption from the configuration file. she stays. right here.--force-stderr,-Oβ force output tostderrinnodaemonize, even ifstderris not a TTY. π--allow-to-run-as-root,-Rβ allow the pool to run asroot(disabled by default). disabled by default for a reason, bestie β read that twice before you flex it. π
π FILES π
php-fpm.confβ the configuration file for thephp-fpmdaemon. her diary. πphp.iniβ the standardphpconfiguration file. π
π SIGNAL π
once she's started, php-fpm responds to several POSIX signals. here's the cheat sheet, memorize it, it will come up:
SIGINT,SIGTERMβ immediate termination. no warning, no goodbye, we're done here.SIGQUITβ graceful stop. the soft launch of shutdowns.SIGUSR1β re-open log file. fresh notebook, same girl. πβ¨SIGUSR2,SIGHUPβ graceful reload of all workers + reload of
fpm conf/binary
okay yes the original text really does break across the lines like that, so there you go β graceful reload of all workers + reload of fpm conf/binary. π
π«Ά SEE ALSO π«Ά
for a more or less complete description of PHP-FPM, look here: https://www.php.net/fpm β the lore drops, go read them. π
π BUGS π
you can view the list of known bugs, or report any new bug you found, at: https://github.com/php/php-src/issues. not me finding a bug at 3am π
π AUTHORS π
PHP-FPM SAPI was written by Andrei Nigmatulin. and the mailing lists are highload-php-en (English) and highload-php-ru (Russian) β multilingual legend behavior. π
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: https://www.php.net/credits.php β go give them their flowers. π
and last but not least, PHP was developed with the help of a huge amount of contributors all around the world. a truly global group chat π
β VERSION INFORMATION β
this manpage describes php-fpm, version 8.5.9.
π COPYRIGHT π
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. π
and that's the whole page, bestie β no notes, no cap, every flag accounted for. π
okay bye, this was the The PHP Group's php-fpm manpage, dated 2024, and you read the whole entire thing β that's the section 8 manual, mwah, obsessed with you, go restart your pools π¦β¨
π¦ where this page comes from
- ubuntu stonking: php8.5-fpm 8.5.9-0ubuntu1
- ubuntu stonking: php8.5-fpm 8.5.9-0ubuntu2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms