DragonFly On-Line Manual Pages
KFCGI(8) DragonFly System Manager's Manual KFCGI(8)
NAME
kfcgi - FastCGI server for kcgi applications
SYNOPSIS
kfcgi [-l backlog] [-n workers] [-p chroot] [-s sockpath] [-u sockuser]
[-U procuser] prog [arg0...]
DESCRIPTION
The kfcgi server starts up workers processes of prog to handle FastCGI
connections. By default, it opens the socket /var/www/run/httpd.sock in
mode 0660 under the current user and group, changes to a file-system jail
in /var/www, then starts 3 workers executing prog, which must exist
relative to the file-system jail root. The arguments are as follows:
-l backlog
The connection backlog. If unspecified or zero, this is set to
the value of -n. If too small, the web-server will not be able
to pass in new connections.
-n workers
The number of workers >1.
-p chroot
Location of file-system jail. This is mandatory: use the root
directory if you insist on being insecure.
-s sockpath
Alternative socket path.
-u sockuser
The user in whose name (user and group) the socket is created.
-U procuser
The user in whose name the process is dropped.
EXIT STATUS
The kfcgi utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
On OpenBSD, the default user for the web server is "www". Assuming we
have a server that doesn't need any files, we can run the following to
keep it in a safe jail:
# kfcgi -u www -U www -- /fcgi-bin/prog
This will execute /fcgi-bin/prog within the default file-system jail of
/var/www as user "www". It will create the default socket
/var/www/run/httpd.sock in mode 0660 as user "www".
SEE ALSO
kcgi(3)
DragonFly 6.5-DEVELOPMENT August 10, 2015 DragonFly 6.5-DEVELOPMENT