Table of Contents
Mongoose is easy to use web server for Windows, Linux and Mac. It also can be used as embedded web server library to provide web interface to applications.
Download for Linux: https://mongoose.ws Download for Windows and Mac: https://mongoose.ws
Mongoose executable does not depend on any external library or configuration.
If it is copied to any directory and launched from there, it starts to serve that directory on port 8080
(so to access files, go to http://localhost:8080).
If some additional config is required - for example, different listening port or IP-based access control,
then a mongoose.conf file with respective options can be created in the same directory where executable lives.
This makes Mongoose perfect for all sorts of demos, quick tests, file sharing, and Web programming.
DokuWiki will run just fine with Mongoose and PHP through CGI.
Telling Mongoose how to work with PHP
This requires the following settings in the “mongoose.conf” file:
cgi_extensions .cgi,.pl,.php cgi_interpreter \YOUR_PHP_INSTALL_DIRECTORY\php-cgi.exe
Telling PHP how to work with Mongoose
If PHP is installed and verified to work when launched from the command-line, there is a possibility that the webbrowser does not show the PHP output when pointed to URL “http://yourserver/path_to_your_script.php”.
When you see the text “Input file not specified”, it means that PHP must be told to work with Mongoose. The variable 'doc_root' in file 'php.ini' must be set to match the “mongoose.conf” variable 'document_root'.
Because Mongoose does not use .htaccess files (like Apache), the Dokuwiki directories (bin, conf, data, and inc) should be made inaccessible by following the procedure as described in Security
On top of that, it is a good idea to disable the directory listing function in the “mongoose.conf” file.