\fBPHP\fP is a widely\-used general\-purpose scripting language that is especially suited for
Web development and can be embedded into HTML. This is a variant of PHP that will run in the background as a daemon, listening for CGI requests. Output is logged to @php_fpm_localstatedir@/log/php-fpm.log.
.LP
Most options are set in the configuration file. The configuration file is @php_fpm_sysconfdir@/php-fpm.conf. By default, php-fpm will respond to CGI requests listening on localhost http port 9000. Therefore php-fpm expects your webserver to forward all requests for '.php' files to port 9000 and you should edit your webserver configuration file appropriately.
.SHOPTIONS
.TP15
.B\-C
Do not chdir to the script's directory
.TP
.PD0
.B\-\-php\-ini\fIpath\fP|\fIfile\fP
.TP
.PD1
.B\-c\fIpath\fP|\fIfile\fP
Look for
.Bphp.ini
file in the directory
.IRpath
or use the specified
.IRfile
.TP
.PD0
.B\-\-no\-php\-ini
.TP
.PD1
.B\-n
No
.Bphp.ini
file will be used
.TP
.PD0
.B\-\-define\fIfoo\fP[=\fIbar\fP]
.TP
.PD1
.B\-d\fIfoo\fP[=\fIbar\fP]
Define INI entry
.IRfoo
with value
.IRbar
.TP
.B\-e
Generate extended information for debugger/profiler
You should use the init script provided to start and stop the php-fpm daemon. This situation applies for any unix systems which use init.d for their main process manager.
.P
.PD1
.RS
sudo /etc/init.d/php-fpm start
.RE
.TP
If your installation has no appropriate init script, launch php-fpm with no arguments. It will launch as a daemon (background process) by default. The file @php_fpm_localstatedir@/run/php-fpm.pid determines whether php-fpm is already up and running. Once started, php-fpm then responds to several POSIX signals: