A tiny http web server to serve static content and execute php scripts (php-cgi).
The server optionally supports php-fpm through an optional fastcgi configuration that needs to be enabled during compilation.
./minihttpd [Directory] [PORT (default = 8000)]
- On some systems the server is needed to be run as root.
The binary can be built by simply running:
make
The minihttpd binary is deployed to ./build
The web server can use fast cgi just by setting
a macro in srd/httpd.c
:
#define FAST_CGI 1