Startup

The first thing phhttpd does when started, usually by system initialization scripts, is read its configuration file. There is no default config file location, it must be specified on the command line with the -c option. During parsing errors are sent to stderr. Once the configuration file is parsed all logging then occurs as specified in the config file, including further startup errors.

phhttpd will make itself a daemon once it has parsed the config file. A -f on the command line will instead tell phhttpd to continue to run in the foreground. This is typically used in conjunction with -d which enables the insanely verbose output of debugging messages.

On some systems, the -p may be used to force the use of a poll() based IO engine rather than the native engine for the system.