PHP-FPM(8)
π PHP-FPM(8) π
okay bestie, so this is the manual page for php-fpm, from the Scripting Language corner of your man pages, and honestly? she's a whole icon. let's get into it π
β¨ NAME β¨
php-fpm β the PHP FastCGI Process Manager, aka 'PHP-FPM'. yeah she has a whole government name AND a nickname. main character behavior fr. π
πΈ SYNOPSIS πΈ
php-fpm [options]
that's it. that's the whole vibe. you run her with some options and she does the thing. π
π¦ DESCRIPTION π¦
so like, PHP is a widely-used general-purpose scripting language that's especially suited for Web development and can be embedded into HTML. you knew that. everyone knows that. πββοΈ
THIS version though β this variant of PHP β runs in the background as a daemon, just chilling, listening for CGI requests. her output gets logged to /var/log/php-fpm.log. she's not loud, she's just always there. that's her vibe. π
most of the options? not set by you on the command line, bestie. they live in the configuration file. that file is /etc/php-fpm.conf. π
by default, php-fpm responds to CGI requests listening on localhost http port 9000. so this means your webserver needs to forward all the requests for '.php' files to port 9000, and you should go edit your webserver configuration file appropriately. like, actually go do it. she's waiting. π
π OPTIONS π
okay this is the big one. every single flag, no skipping, we're doing all of them bestie. buckle up. π«Ά
-Cβ does NOT chdir to the script's directory. stay put, periodt.--php-ini path|file,-c path|fileβ look for thephp.inifile in the directory path, or just use the file you specified directly. your call, queen.--no-php-ini,-nβ nophp.inifile will be used AT ALL. zero. none. bold move honestly. π--define foo[=bar],-d foo[=bar]β define the INI entryfoowith valuebar. you're literally writing config from the command line, that's so iconic.-eβ generate extended information for debugger/profiler. detective mode, activated. π--help,-hβ the help. you are here. hi. π--info,-iβ PHP information and configuration. she's telling you everything about herself. emotional availability, we love to see it. π--modules,-mβ show the compiled in modules. what she's made of. β¨--version,-vβ version number. which era of her are we in?--prefix path,-pβ specify an alternative prefix path (the default is/usr). she's flexible, she can move. π--pid file,-gβ specify the PID file location. that's her address. leave a note. π--fpm-config file,-yβ specify an alternative path to the FastCGI process manager configuration file (the default is/etc/php-fpm.conf). going somewhere fancy? π--test,-tβ test the FPM configuration file and exit. and if you call it TWICE, so-tt, the configuration is dumped before exiting. double tap for the full tea. β--daemonize,-Dβ force her to run in the background and ignore thedaemonizeoption from the configuration file. config said one thing, you said another. your word wins. π₯--nodaemonize,-Fβ force her to stay in the foreground and ignore thedaemonizeoption from the configuration file. she stays. she watches. π--force-stderr,-Oβ force output to stderr in nodaemonize even if stderr is not a TTY. okay that one's specific but it's in the list so here it is. π--allow-to-run-as-root,-Rβ allow the pool to run as root (disabled by default). yeah. it's off. it stays off unless you say otherwise. just so we're clear. π¨
π FILES π
php-fpm.confβ the configuration file for thephp-fpmdaemon. her diary.php.iniβ the standard php configuration file. the classic.
β SIGNAL β
once she's started, php-fpm responds to several POSIX signals. think of it like a mood ring but for processes:
SIGINT,SIGTERMβ immediate termination. she's GONE. no goodbye. πSIGQUITβ graceful stop. she leaves politely, closes the door behind her. πͺSIGUSR1β re-open log file. fresh notebook, same girl. πSIGUSR2,SIGHUPβ graceful reload of all workers + reload offpm conf/binary. glow up reload, everything gets refreshed. β¨
π SEE ALSO π
for a more or less complete description of PHP-FPM, look here: https://www.php.net/fpm π
π BUGS π
you can view the list of known bugs, or report any new bug you found, at: https://github.com/php/php-src/issues
ngl if you find one, tell them. they wanna know. no cap. π«Ά
π 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. the whole squad. π
a list of active developers can be found here: https://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. literally worldwide. global village energy. ππ
πΈ VERSION INFORMATION πΈ
this manpage describes php-fpm, version 8.4.27. π
π 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. they're nice about it, promise. π¬
okay and that's the whole page bestie π written by The PHP Group back in 2024, this was page PHP-FPM(8) and she ate every single time. love that for her. now go fix your webserver config. π
β¨
π¦ where this page comes from
- debian trixie: php8.4-fpm 8.4.27-1~deb13u1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms